Package de.xima.fc.workflow.bpmn
Class AMessageStartEventBpmnModeler<Model>
- java.lang.Object
-
- de.xima.fc.workflow.bpmn.AStartEventBpmnModeler<Model>
-
- de.xima.fc.workflow.bpmn.AMessageStartEventBpmnModeler<Model>
-
- Type Parameters:
Model
- Type of the trigger's custom parameters model.
- All Implemented Interfaces:
IWorkflowTriggerBpmnModeler<Model>
- Direct Known Subclasses:
FcCatchErrorBpmnModeler
,FcDoiVerifiedBpmnModeler
,FcFormRecordMessagePostedBpmnModeler
,FcFormRecordMessageUploadRequestFulfilledBpmnModeler
,FcFormSubmitButtonBpmnModeler
,FcInvitationErrorBpmnModeler
,FcInvitationSentBpmnModeler
,FcManualBpmnModeler
,FcQualifiedFormSubmitButtonBpmnModeler
,FcStateTimerBpmnModeler
,FcUserInvocationBpmnModeler
public abstract class AMessageStartEventBpmnModeler<Model> extends AStartEventBpmnModeler<Model>
Base class for BPMN modelers that can be represented as amessage
start event
. You need to implement various methods regarding the message structure, type, and operation.- Since:
- 8.4.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.xima.fc.workflow.bpmn.AStartEventBpmnModeler
AStartEventBpmnModeler.IStatefulStartEventPostProcessor
-
-
Constructor Summary
Constructors Constructor Description AMessageStartEventBpmnModeler()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected List<de.xima.bpmn_model.api.element.bpmn.events.MessageEventDefinition>
createEventDefinition(IModelWorkflowTriggerParams<Model> params, IWorkflowBpmnModelContext context, IBoundMessageLocalizer localizer)
Creates theevent definitions
for the start event in the BPMN model.protected abstract String
getInterfaceName(IModelWorkflowTriggerParams<Model> params, IWorkflowBpmnModelContext context)
The technical name of theInterface
the declares theoperation
usedby
themessage event
.protected String
getMessageName(IModelWorkflowTriggerParams<Model> params, IWorkflowBpmnModelContext context)
Gets the technicalname
of theMessage
that triggers thestart event
.protected abstract QName
getMessageStructure(IModelWorkflowTriggerParams<Model> params, IWorkflowBpmnModelContext context)
protected abstract String
getMessageType(IModelWorkflowTriggerParams<Model> params, IWorkflowBpmnModelContext context)
Gets the internal identifier of theMessage
that triggers thestart event
.protected abstract String
getOperationName(IModelWorkflowTriggerParams<Model> params, IWorkflowBpmnModelContext context)
The technical name of theOperation
usedby
themessage event
.-
Methods inherited from class de.xima.fc.workflow.bpmn.AStartEventBpmnModeler
createDetails, createName, createStartEventLayoutPostProcessor, modelTrigger
-
-
-
-
Method Detail
-
createEventDefinition
protected final List<de.xima.bpmn_model.api.element.bpmn.events.MessageEventDefinition> createEventDefinition(IModelWorkflowTriggerParams<Model> params, IWorkflowBpmnModelContext context, IBoundMessageLocalizer localizer)
Description copied from class:AStartEventBpmnModeler
Creates theevent definitions
for the start event in the BPMN model. This is usually only a single event definition. If multiple definitions are returned, the BPMN standard considers this a Multiple event. If no definitions are returned, the BPMN standard considers this as a None event.- Specified by:
createEventDefinition
in classAStartEventBpmnModeler<Model>
- Parameters:
params
- The parameters with the trigger to model, as provided by the workflow engine.context
- The BPMN model context, as provided by the workflow engine.localizer
- The localizer to use for localizing the name. This is the same as theboundMessageLocalizer
obtained from thecontext
.- Returns:
- A list of event definitions for the start event in the BPMN model.
-
getInterfaceName
protected abstract String getInterfaceName(IModelWorkflowTriggerParams<Model> params, IWorkflowBpmnModelContext context)
The technical name of theInterface
the declares theoperation
usedby
themessage event
.- Parameters:
params
- The parameters with the trigger to model, as provided by the workflow engine.context
- The BPMN model context, as provided by the workflow engine.- Returns:
- The name of the interface.
-
getMessageName
protected String getMessageName(IModelWorkflowTriggerParams<Model> params, IWorkflowBpmnModelContext context)
Gets the technicalname
of theMessage
that triggers thestart event
. The default implementation returns themessage type
. You may override this method to provide a more descriptive name.- Parameters:
params
- The parameters with the trigger to model, as provided by the workflow engine.context
- The BPMN model context, as provided by the workflow engine.- Returns:
- The type of the message, which is used to identify the message in the BPMN model.
-
getMessageStructure
protected abstract QName getMessageStructure(IModelWorkflowTriggerParams<Model> params, IWorkflowBpmnModelContext context)
- Parameters:
params
- The parameters with the trigger to model, as provided by the workflow engine.context
- The BPMN model context, as provided by the workflow engine.- Returns:
- The structure of the message.
-
getMessageType
protected abstract String getMessageType(IModelWorkflowTriggerParams<Model> params, IWorkflowBpmnModelContext context)
Gets the internal identifier of theMessage
that triggers thestart event
.- Parameters:
params
- The parameters with the trigger to model, as provided by the workflow engine.context
- The BPMN model context, as provided by the workflow engine.- Returns:
- The type of the message, which is used to identify the message in the BPMN model.
-
getOperationName
protected abstract String getOperationName(IModelWorkflowTriggerParams<Model> params, IWorkflowBpmnModelContext context)
The technical name of theOperation
usedby
themessage event
.- Parameters:
params
- The parameters with the trigger to model, as provided by the workflow engine.context
- The BPMN model context, as provided by the workflow engine.- Returns:
- The name of the operation.
-
-