org.ow2.petals.activitibpmn.monitoring.ProcessInstanceFlowStepBeginLogData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of petals-se-activiti Show documentation
Show all versions of petals-se-activiti Show documentation
BPMN Service Engine based on Activiti
/**
* Copyright (c) 2015-2016 Linagora
*
* This program/library is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 2.1 of the License, or (at your
* option) any later version.
*
* This program/library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
* for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program/library; If not, see http://www.gnu.org/licenses/
* for the GNU Lesser General Public License version 2.1.
*/
package org.ow2.petals.activitibpmn.monitoring;
import org.ow2.petals.commons.log.TraceCode;
import org.ow2.petals.component.framework.logger.AbstractFlowLogData;
/**
* @author Christophe DENEUX - Linagora
*/
public final class ProcessInstanceFlowStepBeginLogData extends AbstractFlowLogData {
private static final long serialVersionUID = -310582124340683531L;
/**
* Name of the MONIT trace attribute containing the process definition of the process instance created.
*/
public static final String PROCESS_DEFINITION_KEY = "processDefinition";
/**
* Name of the MONIT trace attribute containing the identifier of process instance created.
*/
public static final String PROCESS_INSTANCE_ID_KEY = "processInstanceId";
/**
*
* @param flowInstanceId
* The flow instance identifier used to create the process instance
* @param flowStepId
* The flow step identifier of the task completing the user task
* @param correlatedFlowInstanceId
* The flow instance identifier of the correlated process completing the user task, ie. the flow instance
* identifier coming from the request completing the user task
* @param correlatedFlowStepId
* The flow step identifier of the correlated process completing the user task, ie. the flow step
* identifier coming from the request completing the user task
* @param processDefinition
* The process definition identifier of the process instance created
* @param processInstanceId
* The identifier of the process instance created
*/
public ProcessInstanceFlowStepBeginLogData(final String flowInstanceId, final String flowStepId,
final String correlatedFlowInstanceId, final String correlatedFlowStepId,
final String processDefinition, final String processInstanceId) {
super(TraceCode.CONSUME_EXT_FLOW_STEP_BEGIN, flowInstanceId, flowStepId);
ActivitiActivityFlowStepData.addActivitiActivityFlowStepData(this, correlatedFlowInstanceId,
correlatedFlowStepId);
this.putData(PROCESS_DEFINITION_KEY, processDefinition);
this.putData(PROCESS_INSTANCE_ID_KEY, processInstanceId);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy