Package org.bonitasoft.engine.mdc
Class FlowNodeInstanceMDC
java.lang.Object
org.bonitasoft.engine.mdc.AbstractMDC
org.bonitasoft.engine.mdc.FlowNodeInstanceMDC
- All Implemented Interfaces:
AutoCloseable,MDCConstants
-
Field Summary
Fields inherited from interface org.bonitasoft.engine.mdc.MDCConstants
CORRELATION_REQUEST_ID, FLOW_NODE_INSTANCE_ID, PROCESS_DEFINITION_ID, PROCESS_INSTANCE_ID, REQUEST_ID, REQUEST_METHOD, REQUEST_QUERY_STRING, REQUEST_REMOTE_HOST_MDC_KEY, REQUEST_REQUEST_URI, REQUEST_REQUEST_URL, REQUEST_USER_AGENT_MDC_KEY, REQUEST_X_FORWARDED_FOR, ROOT_PROCESS_INSTANCE_ID, SUBSTITUTE_USER_ID, TRANSACTION_ID, USER_ID -
Constructor Summary
ConstructorsConstructorDescriptionFlowNodeInstanceMDC(long flowNodeInstanceId, long processDefinitionId, long processInstanceId, long rootProcessInstanceId) Build a flow node execution context when no user is involved (e.g.FlowNodeInstanceMDC(long flowNodeInstanceId, long executerId, long substituteUserId, long processDefinitionId, long processInstanceId, long rootProcessInstanceId) Build a flow node execution context when a user is authenticated.FlowNodeInstanceMDC(long flowNodeInstanceId, Optional<Long> executerId, Optional<Long> substituteUserId, long processDefinitionId, long processInstanceId, long rootProcessInstanceId) Build a flow node execution context. -
Method Summary
Methods inherited from class org.bonitasoft.engine.mdc.AbstractMDC
closeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.AutoCloseable
close
-
Constructor Details
-
FlowNodeInstanceMDC
public FlowNodeInstanceMDC(long flowNodeInstanceId, long processDefinitionId, long processInstanceId, long rootProcessInstanceId) Build a flow node execution context when no user is involved (e.g. service task).- Parameters:
flowNodeInstanceId- the id of the flow node instanceprocessDefinitionId- the id of the process definitionprocessInstanceId- the id of the process instance / caserootProcessInstanceId- the id of the root process instance / case
-
FlowNodeInstanceMDC
public FlowNodeInstanceMDC(long flowNodeInstanceId, long executerId, long substituteUserId, long processDefinitionId, long processInstanceId, long rootProcessInstanceId) Build a flow node execution context when a user is authenticated.- Parameters:
flowNodeInstanceId- the id of the flow node instanceexecuterId- the id of the user executing the flow nodesubstituteUserId- the id of the admin user activating the flow node for the executerprocessDefinitionId- the id of the process definitionprocessInstanceId- the id of the process instance / caserootProcessInstanceId- the id of the root process instance / case
-
FlowNodeInstanceMDC
public FlowNodeInstanceMDC(long flowNodeInstanceId, Optional<Long> executerId, Optional<Long> substituteUserId, long processDefinitionId, long processInstanceId, long rootProcessInstanceId) Build a flow node execution context.- Parameters:
flowNodeInstanceId- the id of the flow node instanceexecuterId- the eventual id of the user executing the flow nodesubstituteUserId- the eventual id of the admin user activating the flow node for the executerprocessDefinitionId- the id of the process definitionprocessInstanceId- the id of the process instance / caserootProcessInstanceId- the id of the root process instance / case
-