Class DecisionTraceMessage
java.lang.Object
com.aquima.interactions.trace.impl.TraceMessageBase
com.aquima.interactions.trace.impl.ProcessTraceMessage
com.aquima.interactions.trace.impl.DecisionTraceMessage
- All Implemented Interfaces:
ITraceMessage
,Serializable
This trace message is constructed to trace a decision tree from a process. This object is constructed with the
required and optional properties.
- Since:
- 9.3
- Author:
- J. Hermus
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
When a conditional event evaluates to TRUE the logic should be stored as a decision.static final String
When a process has passed a split node.static final String
When a task is closed.static final String
When a task is opened.static final String
When a timer node is startedstatic final String
Propertiesstatic final String
static final String
static final String
Fields inherited from class com.aquima.interactions.trace.impl.ProcessTraceMessage
DISPLAY_NAME, PROPERTY_PROCESS_ID, PROPERTY_PROCESS_NAME, PROPERTY_USER_ID, PROPERTY_USER_NAME
-
Method Summary
Modifier and TypeMethodDescriptionstatic ITraceMessage
forConditionTriggered
(String applicationId, String processName, String userId, String userName, long processId, long taskId, GUID nodeId, DMNDecisionTree decisionGraph) This method constructs an DRGTraceMessage and needs to be called when an attribute is inferred by the inference engine.static ITraceMessage
forSplitNode
(String applicationId, String processName, long processId, String userId, String userName, GUID splitNodeId, GUID splitAlternativeNodeId, DMNDecisionTree decisionGraph) This method constructs an DRGTraceMessage and needs to be called when a process has passed a 'splitnode' and flowed one ore more paths based on one or more decisions.static ITraceMessage
forTaskClosed
(String applicationId, String processName, String userId, String userName, long processId, long taskId, GUID nodeId, DMNDecisionTree decisionGraph) This method constructs a DRGTraceMessage and needs to be called when an instance of a task (adhoc task) is closed.static ITraceMessage
forTaskOpened
(String applicationId, String processName, String userId, String userName, long processId, long taskId, GUID nodeId, DMNDecisionTree decisionGraph) This method constructs a DRGTraceMessage and needs to be called when an new instance of a task (adhoc task) is created and opened.static ITraceMessage
forTimerStarted
(String applicationId, String processName, String userId, String userName, long processId, long taskId, GUID nodeId, DMNDecisionTree decisionGraph) This method constructs an DRGTraceMessage and needs to be called when an attribute is inferred by the inference engine.Methods inherited from class com.aquima.interactions.trace.impl.ProcessTraceMessage
addDisplayNamesToResult, createDisplayNameKey, getDisplayNamePrefix
Methods inherited from class com.aquima.interactions.trace.impl.TraceMessageBase
addProperty, getApplicationId, getMessageType, getProperties, getPropertyNames, getPropertyValue
-
Field Details
-
ACTION_DECISION_TASK_OPENED
When a task is opened.- See Also:
-
ACTION_DECISION_TASK_CLOSED
When a task is closed.- See Also:
-
ACTION_DECISION_SPLIT_NODE
When a process has passed a split node.- See Also:
-
ACTION_DECISION_TIMER_STARTED
When a timer node is started- See Also:
-
ACTION_DECISION_CONDITION_TRIGGERED
When a conditional event evaluates to TRUE the logic should be stored as a decision. Both in sequence and ad-hoc- See Also:
-
PROPERTY_DECISION_GRAPH
Properties- See Also:
-
PROPERTY_NODE_ID
- See Also:
-
PROPERTY_TASK_ID
- See Also:
-
PROPERTY_SPLIT_ALTERNATIVE_NODE_ID
- See Also:
-
-
Method Details
-
forTaskOpened
public static ITraceMessage forTaskOpened(String applicationId, String processName, String userId, String userName, long processId, long taskId, GUID nodeId, DMNDecisionTree decisionGraph) This method constructs a DRGTraceMessage and needs to be called when an new instance of a task (adhoc task) is created and opened. The purpose for calling this method is to log the decision, if available, that was made to open this task.- Parameters:
applicationId
- The unique id of the application.processName
- The name of the case.userId
- the user iduserName
- the user nameprocessId
- the case idtaskId
- the task idnodeId
- the node iddecisionGraph
- the decision graph- Returns:
- DecisionProcessTraceMessage The message that contains all required and optional properties to be logged.
-
forTaskClosed
public static ITraceMessage forTaskClosed(String applicationId, String processName, String userId, String userName, long processId, long taskId, GUID nodeId, DMNDecisionTree decisionGraph) This method constructs a DRGTraceMessage and needs to be called when an instance of a task (adhoc task) is closed. The purpose for calling this method is to log the decision, if available, that was made to close this task.- Parameters:
applicationId
- The unique id of the application.processName
- The name of the case.userId
- the user iduserName
- the user nameprocessId
- the case idtaskId
- the task idnodeId
- the node iddecisionGraph
- the decision graph- Returns:
- DecisionProcessTraceMessage The message that contains all required and optional properties to be logged.
-
forSplitNode
public static ITraceMessage forSplitNode(String applicationId, String processName, long processId, String userId, String userName, GUID splitNodeId, GUID splitAlternativeNodeId, DMNDecisionTree decisionGraph) This method constructs an DRGTraceMessage and needs to be called when a process has passed a 'splitnode' and flowed one ore more paths based on one or more decisions.- Parameters:
applicationId
- The unique id of the application.processName
- The name of the case.processId
- The id of the case instance.userId
- the user iduserName
- the user namesplitNodeId
- the id of the split nodesplitAlternativeNodeId
- the alternative split node iddecisionGraph
- the decision graph- Returns:
- DecisionProcessTraceMessage The message that contains all required and optional properties to be logged.
-
forTimerStarted
public static ITraceMessage forTimerStarted(String applicationId, String processName, String userId, String userName, long processId, long taskId, GUID nodeId, DMNDecisionTree decisionGraph) This method constructs an DRGTraceMessage and needs to be called when an attribute is inferred by the inference engine.- Parameters:
applicationId
- The unique id of the application.processName
- The name of the case.userId
- the user iduserName
- the user nameprocessId
- the case idtaskId
- the task idnodeId
- the node iddecisionGraph
- the decision graph- Returns:
- DecisionProcessTraceMessage The message that contains all required and optional properties to be logged.
-
forConditionTriggered
public static ITraceMessage forConditionTriggered(String applicationId, String processName, String userId, String userName, long processId, long taskId, GUID nodeId, DMNDecisionTree decisionGraph) This method constructs an DRGTraceMessage and needs to be called when an attribute is inferred by the inference engine.- Parameters:
applicationId
- The unique id of the application.processName
- The name of the case.userId
- the user iduserName
- the user nameprocessId
- the case idtaskId
- the task idnodeId
- the node iddecisionGraph
- the decision graph- Returns:
- DecisionProcessTraceMessage The message that contains all required and optional properties to be logged.
-