Class WorkflowEvent
- java.lang.Object
-
- com.evolveum.midpoint.notifications.api.events.BaseEvent
-
- com.evolveum.midpoint.notifications.api.events.WorkflowEvent
-
- All Implemented Interfaces:
Event
,DebugDumpable
,ShortDumpable
- Direct Known Subclasses:
WorkflowProcessEvent
,WorkItemEvent
public abstract class WorkflowEvent extends BaseEvent
- Author:
- mederly
-
-
Field Summary
Fields Modifier and Type Field Description protected CaseType
aCase
protected ApprovalContextType
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 Abstract Methods Concrete Methods Modifier and Type Method Description protected void
debugDumpCommon(StringBuilder sb, int indent)
ApprovalContextType
getApprovalContext()
CaseType
getCase()
ChangeType
getChangeType()
OperationStatus
getOperationStatus()
protected abstract String
getOutcome()
String
getProcessInstanceName()
CaseType
getWorkflowTask()
boolean
isApprovalCase()
boolean
isApproved()
boolean
isManualResourceCase()
boolean
isOperationType(EventOperationType eventOperationType)
boolean
isRejected()
boolean
isRelatedToItem(ItemPath itemPath)
Checks if the event is related to an item with a given path.boolean
isResultKnown()
boolean
isStatusType(EventStatusType eventStatusType)
String
toString()
-
Methods inherited from class com.evolveum.midpoint.notifications.api.events.BaseEvent
containsItem, containsItem, createExpressionVariables, getAdHocHandler, getChannel, getId, getNotificationFunctions, getPrismContext, getRequestee, getRequesteeDisplayName, getRequesteeName, getRequesteeObject, getRequesteeOid, getRequester, getRequesterDisplayName, getRequesterName, getRequesterObject, getRequesterOid, getStatusAsText, isAccountRelated, isAdd, isAlsoSuccess, isCategoryType, 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, 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
-
approvalContext
@Nullable protected final ApprovalContextType approvalContext
-
aCase
@NotNull protected final CaseType aCase
-
-
Method Detail
-
getCase
@NotNull public CaseType getCase()
-
getProcessInstanceName
public String getProcessInstanceName()
-
getOperationStatus
public OperationStatus getOperationStatus()
-
getOutcome
protected abstract String getOutcome()
-
isStatusType
public boolean isStatusType(EventStatusType eventStatusType)
- Specified by:
isStatusType
in interfaceEvent
- Specified by:
isStatusType
in classBaseEvent
-
getChangeType
public ChangeType getChangeType()
-
isOperationType
public boolean isOperationType(EventOperationType eventOperationType)
- Specified by:
isOperationType
in interfaceEvent
- Specified by:
isOperationType
in classBaseEvent
-
isApprovalCase
public boolean isApprovalCase()
-
isManualResourceCase
public boolean isManualResourceCase()
-
isResultKnown
public boolean isResultKnown()
-
isApproved
public boolean isApproved()
-
isRejected
public boolean isRejected()
-
isRelatedToItem
public boolean isRelatedToItem(ItemPath itemPath)
Description copied from interface:Event
Checks if the event is related to an item with a given path. The meaning of the result depends on a kind of event (focal, resource object, workflow) and on operation (add, modify, delete). Namely, this method is currently defined for ADD and MODIFY (not for DELETE) operations, for focal and resource objects events (not for workflow ones). For MODIFY it checks whether an item with a given path is touched. For ADD it checks whether there is a value for an item with a given path in the object created. For unsupported events the method returns false. Paths are compared without taking ID segments into account. EXPERIMENTAL; does not always work (mainly for values being deleted)- Returns:
-
getApprovalContext
@NotNull public ApprovalContextType getApprovalContext()
-
getWorkflowTask
@NotNull public CaseType getWorkflowTask()
-
debugDumpCommon
protected void debugDumpCommon(StringBuilder sb, int indent)
- Overrides:
debugDumpCommon
in classBaseEvent
-
-