public class WfContextUtil extends Object
Constructor and Description |
---|
WfContextUtil() |
@Nullable public static String getStageInfo(WfContextType wfc)
@Nullable public static String getStageInfo(WorkItemType workItem)
public static Integer getStageCount(WorkItemType workItem)
public static String getStageName(WorkItemType workItem)
public static String getStageName(WfContextType wfc)
public static String getStageDisplayName(WfContextType wfc)
public static ApprovalSchemaType getApprovalSchema(WfContextType wfc)
public static Integer getStageCount(WfContextType wfc)
public static String getStageDisplayName(WorkItemType workItem)
public static String getStageInfo(Integer stageNumber, Integer stageCount, String stageName, String stageDisplayName)
@Nullable public static String getEscalationLevelInfo(AbstractWorkItemType workItem)
public static String getEscalationLevelInfo(WorkItemEscalationLevelType e)
public static boolean hasFinished(WfContextType wfc)
@Nullable public static String getCompleteStageInfo(WfContextType wfc)
public static void appendNumber(Integer stageNumber, Integer stageCount, StringBuilder sb)
public static ItemApprovalProcessStateType getItemApprovalProcessInfo(WfContextType wfc)
public static WfPrimaryChangeProcessorStateType getPrimaryChangeProcessorState(WfContextType wfc)
public static ItemApprovalWorkItemPartType getItemApprovalWorkItemInfo(WorkItemType workItem)
@NotNull public static List<SchemaAttachedPolicyRuleType> getAttachedPolicyRules(WfContextType workflowContext, int order)
public static ApprovalStageDefinitionType getCurrentStageDefinition(WfContextType wfc)
public static ApprovalStageDefinitionType getStageDefinition(WfContextType wfc, int stageNumber)
public static List<ApprovalStageDefinitionType> getStages(ApprovalSchemaType approvalSchema)
public static <T extends CaseEventType> List<T> getEventsForCurrentStage(@NotNull WfContextType wfc, @NotNull Class<T> clazz)
public static <T extends CaseEventType> List<T> getEvents(@NotNull WfContextType wfc, @NotNull Class<T> clazz)
public static <T extends WorkItemEventType> List<T> getWorkItemEvents(@NotNull WfContextType wfc, @NotNull String workItemId, Class<T> clazz)
public static String getBriefDiagInfo(WfContextType wfc)
@NotNull public static String getCurrentStageOutcome(WfContextType wfc, List<StageCompletionEventType> stageEvents)
public static String getStageDiagName(ApprovalStageDefinitionType level)
public static void normalizeStages(ApprovalSchemaType schema)
public static List<ApprovalStageDefinitionType> sortAndCheckStages(ApprovalSchemaType schema)
public static OperationBusinessContextType getBusinessContext(WfContextType wfc)
public static String getProcessInstanceId(WorkItemType workItem)
public static WfContextType getWorkflowContext(WorkItemType workItem)
public static WfContextType getWorkflowContext(ApprovalSchemaExecutionInformationType info)
@Nullable public static String getTaskOid(WorkItemType workItem)
@Nullable public static TaskType getTask(WorkItemType workItem)
@Nullable public static TaskType getTask(WfContextType wfc)
public static ObjectReferenceType getObjectRef(WorkItemType workItem)
public static ObjectReferenceType getObjectRef(PrismContainerValue<WorkItemType> workItem)
public static ObjectReferenceType getTargetRef(WorkItemType workItem)
public static ObjectReferenceType getTargetRef(PrismContainerValue<WorkItemType> workItem)
public static ObjectReferenceType getRequesterRef(WorkItemType workItem)
public static ObjectReferenceType getRequesterRef(PrismContainerValue<WorkItemType> workItem)
public static XMLGregorianCalendar getStartTimestamp(WorkItemType workItem)
public static XMLGregorianCalendar getStartTimestamp(PrismContainerValue<WorkItemType> workItem)
public static int getEscalationLevelNumber(AbstractWorkItemType workItem)
public static int getEscalationLevelNumber(WorkItemEscalationLevelType level)
public static String getEscalationLevelName(WorkItemEscalationLevelType level)
public static String getEscalationLevelDisplayName(WorkItemEscalationLevelType level)
public static String getEscalationLevelName(AbstractWorkItemType workItem)
public static String getEscalationLevelDisplayName(AbstractWorkItemType workItem)
public static WorkItemEscalationLevelType createEscalationLevel(Integer number, String name, String displayName)
public static Integer getEscalationLevelNumber(WorkItemEventType event)
public static WfContextType getWorkflowContext(PrismObject<TaskType> task)
@NotNull public static WorkItemEventCauseInformationType createCause(AbstractWorkItemActionType action)
@Nullable public static WorkItemOperationKindType getOperationKind(AbstractWorkItemActionType action)
@NotNull public static WorkItemEscalationLevelType createEscalationLevelInformation(DelegateWorkItemActionType delegateAction)
public static void computeAssignees(List<ObjectReferenceType> newAssignees, List<ObjectReferenceType> delegatedTo, List<ObjectReferenceType> delegates, WorkItemDelegationMethodType method, AbstractWorkItemType workItem)
public static WorkItemDelegationEventType createDelegationEvent(WorkItemEscalationLevelType newEscalation, List<ObjectReferenceType> assigneesBefore, List<ObjectReferenceType> delegatedTo, @NotNull WorkItemDelegationMethodType method, WorkItemEventCauseInformationType causeInformation)
@Nullable public static WorkItemEscalationLevelType createNewEscalation(int escalationLevel, WorkItemEscalationLevelType escalation)
@NotNull public static List<TriggerType> createTriggers(int escalationLevel, Date workItemCreateTime, Date workItemDeadline, List<WorkItemTimedActionsType> timedActionsList, PrismContext prismContext, Trace logger, @Nullable String workItemId, @NotNull String handlerUri) throws SchemaException
SchemaException
public static boolean isInStageBeforeLastOne(WfContextType wfc)
public static String getProcessName(ApprovalSchemaExecutionInformationType info)
public static String getTargetName(ApprovalSchemaExecutionInformationType info)
public static String getOutcome(ApprovalSchemaExecutionInformationType info)
public static List<EvaluatedPolicyRuleType> getAllRules(SchemaAttachedPolicyRulesType policyRules)
public static List<List<EvaluatedPolicyRuleType>> getRulesPerStage(WfContextType wfc)
@NotNull public static List<EvaluatedPolicyRuleType> getRulesForCurrentStage(WfContextType wfc)
@NotNull public static List<EvaluatedPolicyRuleType> getRulesForStage(WfContextType wfc, Integer stageNumber)
Copyright © 2019 Evolveum. All rights reserved.