Class WorkItemEvent
- java.lang.Object
-
- com.evolveum.midpoint.notifications.api.events.BaseEvent
-
- com.evolveum.midpoint.notifications.api.events.WorkflowEvent
-
- com.evolveum.midpoint.notifications.api.events.WorkItemEvent
-
- All Implemented Interfaces:
Event
,DebugDumpable
,ShortDumpable
- Direct Known Subclasses:
WorkItemAllocationEvent
,WorkItemCustomEvent
,WorkItemLifecycleEvent
public class WorkItemEvent extends WorkflowEvent
- Author:
- mederly
-
-
Field Summary
Fields Modifier and Type Field Description protected SimpleObjectRef
assignee
protected SimpleObjectRef
initiator
User who "pressed the button".protected WorkItemOperationInfo
operationInfo
protected WorkItemOperationSourceInfo
sourceInfo
protected Duration
timeBefore
protected CaseWorkItemType
workItem
-
Fields inherited from class com.evolveum.midpoint.notifications.api.events.WorkflowEvent
aCase, approvalContext
-
Fields inherited from class com.evolveum.midpoint.notifications.api.events.BaseEvent
adHocHandler
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createExpressionVariables(VariablesMap variables, OperationResult result)
String
debugDump(int indent)
SimpleObjectRef
getAssignee()
WorkItemEventCauseInformationType
getCause()
SimpleObjectRef
getInitiator()
WorkItemOperationInfo
getOperationInfo()
WorkItemOperationKindType
getOperationKind()
String
getOutcome()
AbstractWorkItemOutputType
getOutput()
AbstractWorkItemActionType
getSource()
WorkItemOperationSourceInfo
getSourceInfo()
Duration
getTimeBefore()
CaseWorkItemType
getWorkItem()
String
getWorkItemName()
boolean
isCategoryType(EventCategoryType eventCategoryType)
String
toString()
-
Methods inherited from class com.evolveum.midpoint.notifications.api.events.WorkflowEvent
debugDumpCommon, getApprovalContext, getCase, getChangeType, getOperationStatus, getProcessInstanceName, getWorkflowTask, isApprovalCase, isApproved, isManualResourceCase, isOperationType, isRejected, isRelatedToItem, isResultKnown, isStatusType
-
Methods inherited from class com.evolveum.midpoint.notifications.api.events.BaseEvent
containsItem, containsItem, getAdHocHandler, getChannel, getId, getNotificationFunctions, getPrismContext, getRequestee, getRequesteeDisplayName, getRequesteeName, getRequesteeObject, getRequesteeOid, getRequester, getRequesterDisplayName, getRequesterName, getRequesterObject, getRequesterOid, getStatusAsText, isAccountRelated, isAdd, isAlsoSuccess, isCertCampaignStageRelated, isDelete, isFailure, isInProgress, isModify, isOnlyFailure, isPolicyRuleRelated, isSuccess, isUserRelated, isWorkflowProcessRelated, isWorkflowRelated, isWorkItemRelated, setChannel, setNotificationFunctions, setPrismContext, setRequestee, setRequester, shortDump
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
Methods inherited from interface com.evolveum.midpoint.notifications.api.events.Event
getFocusPassword
-
Methods inherited from interface com.evolveum.midpoint.util.ShortDumpable
shortDump, shortDumpLazily
-
-
-
-
Field Detail
-
workItem
@NotNull protected final CaseWorkItemType workItem
-
assignee
protected final SimpleObjectRef assignee
-
initiator
protected final SimpleObjectRef initiator
User who "pressed the button". I.e. the one that really approved, rejected or delegated/escalated a work item. In case of automated actions (completion, delegation/escalation) this is not filled-in.
-
operationInfo
protected final WorkItemOperationInfo operationInfo
-
sourceInfo
protected final WorkItemOperationSourceInfo sourceInfo
-
timeBefore
protected final Duration timeBefore
-
-
Method Detail
-
getWorkItemName
public String getWorkItemName()
-
getWorkItem
@NotNull public CaseWorkItemType getWorkItem()
-
isCategoryType
public boolean isCategoryType(EventCategoryType eventCategoryType)
- Specified by:
isCategoryType
in interfaceEvent
- Specified by:
isCategoryType
in classBaseEvent
-
getAssignee
public SimpleObjectRef getAssignee()
-
getInitiator
public SimpleObjectRef getInitiator()
-
getOperationKind
public WorkItemOperationKindType getOperationKind()
-
getSource
public AbstractWorkItemActionType getSource()
-
getCause
public WorkItemEventCauseInformationType getCause()
-
getTimeBefore
public Duration getTimeBefore()
-
getOperationInfo
public WorkItemOperationInfo getOperationInfo()
-
getSourceInfo
public WorkItemOperationSourceInfo getSourceInfo()
-
createExpressionVariables
public void createExpressionVariables(VariablesMap variables, OperationResult result)
- Specified by:
createExpressionVariables
in interfaceEvent
- Overrides:
createExpressionVariables
in classBaseEvent
-
getOutput
public AbstractWorkItemOutputType getOutput()
-
getOutcome
public String getOutcome()
- Specified by:
getOutcome
in classWorkflowEvent
-
toString
public String toString()
- Overrides:
toString
in classWorkflowEvent
-
debugDump
public String debugDump(int indent)
-
-