Class FlowNodeInstanceMDC

java.lang.Object
org.bonitasoft.engine.mdc.AbstractMDC
org.bonitasoft.engine.mdc.FlowNodeInstanceMDC
All Implemented Interfaces:
AutoCloseable, MDCConstants

public class FlowNodeInstanceMDC extends AbstractMDC implements AutoCloseable, MDCConstants
  • 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 instance
      processDefinitionId - the id of the process definition
      processInstanceId - the id of the process instance / case
      rootProcessInstanceId - 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 instance
      executerId - the id of the user executing the flow node
      substituteUserId - the id of the admin user activating the flow node for the executer
      processDefinitionId - the id of the process definition
      processInstanceId - the id of the process instance / case
      rootProcessInstanceId - 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 instance
      executerId - the eventual id of the user executing the flow node
      substituteUserId - the eventual id of the admin user activating the flow node for the executer
      processDefinitionId - the id of the process definition
      processInstanceId - the id of the process instance / case
      rootProcessInstanceId - the id of the root process instance / case