io.vanillabp.springboot.adapter.LoggingContext Maven / Gradle / Ivy
package io.vanillabp.springboot.adapter;
import java.util.HashMap;
import java.util.Map;
public abstract class LoggingContext {
/**
* The current workflow module's ID.
*/
public static final String WORKFLOW_MODULE_ID = "workflowModuleId";
/**
* The current VanillaBP adapter's ID.
*/
public static final String WORKFLOW_ADAPTER_ID = "workflowAdapterId";
/**
* The current aggregate's ID - may be null if not yet filled by the database for auto-increments.
*/
public static final String WORKFLOW_AGGREGATE_ID = "workflowAggregateId";
/**
* The current workflow's BPMN process ID ("id" attribute of BPMN "process" tag)
* regardless whether the current action belongs to a call-activity's BPMN task. Secondary BPMN process IDs
* are not available for logging.
*
* #see Call-activities
*/
public static final String WORKFLOW_BPMN_ID = "workflowBpmnId";
/**
* The current workflow's ID, specific to underlying BPM system (aka process instance ID)
* - if already known by the adapter.
*/
public static final String WORKFLOW_BPM_ID = "workflowBpmId";
/**
* The current workflow task's ID.
*/
public static final String WORKFLOW_TASK_ID = "workflowTaskId";
/**
* The current workflow task's BPMN node ("id" attribute of the BPMN XML tag in combination with
* the BPMN process ID the task belongs to - e.g. "MyProcess#MyTask").
*/
public static final String WORKFLOW_TASK_NODE = "workflowTaskNode";
/**
* The current workflow task's BPMN node ID (aka flow node instance ID).
*/
public static final String WORKFLOW_TASK_NODE_ID = "workflowTaskNodeId";
private static ThreadLocal