public interface StateModelUpdater
High-level API to invoke state updates and state transitions.
Modifier and Type | Method and Description |
---|---|
void |
handleCaseFileItemTransition(String caseClientId,
String caseFileItemId,
CaseFileItemTransition caseFileItemTransition,
TransitionData transitionData,
EngineListeners engineListeners,
PersistenceListeners persistenceListeners)
Apply a case file item transition on the specified case file item.
|
void |
handleCaseMigration(String caseClientId,
String oldCmmnXml,
String newCmmnXml,
Map<String,String> clientProperties,
TransitionData transitionData,
EngineListeners engineListeners,
PersistenceListeners persistenceListeners) |
void |
handleDiscretionaryItemPlanning(String caseClientId,
String discretionaryItemId,
TransitionData transitionData,
EngineListeners engineListeners,
PersistenceListeners persistenceListeners)
Apply the planning action on the specified discretionary item.
|
void |
handlePlanItemTransition(String caseClientId,
String sourcePlanItemId,
PlanItemTransition planItemTransition,
TransitionData transitionData,
EngineListeners engineListeners,
PersistenceListeners persistenceListeners)
<p>Trigger a state transition in the state model.
|
void |
handleStateUpdate(String caseClientId,
TransitionData transitionData,
EngineListeners engineListeners,
PersistenceListeners persistenceListeners)
<p>Re-evaluate the state model (e.g. upon detection of an external event).
|
void handleStateUpdate(String caseClientId, TransitionData transitionData, EngineListeners engineListeners, PersistenceListeners persistenceListeners) throws IOException, JAXBException
<p>Re-evaluate the state model (e.g. upon detection of an external event).</p>
caseClientId
- identifies the case (the case ID).transitionData
- the transition dataengineListeners
- a callback object allowing the state engine to trigger actions in the calling client based on results (if any) from the executed transition.persistenceListeners
- persistence callbacks.JAXBException
- if there was a problem creating the state model from the XML.IOException
- if there was a problem creating the state model from the XML or if the initial state of the newly created state model could not be persisted.void handlePlanItemTransition(String caseClientId, String sourcePlanItemId, PlanItemTransition planItemTransition, TransitionData transitionData, EngineListeners engineListeners, PersistenceListeners persistenceListeners) throws IOException, JAXBException
<p>Trigger a state transition in the state model.</p>
caseClientId
- identifies the case (the case ID).sourcePlanItemId
- identifies the plan item upon which to apply the transition.planItemTransition
- the transition to be applied.transitionData
- the transition dataengineListeners
- a callback object allowing the state engine to trigger actions in the calling client based on results (if any) from the executed transition.persistenceListeners
- persistence callbacks.JAXBException
- if there was a problem creating the state model from the XML.IOException
- if there was a problem creating the state model from the XML or if the initial state of the newly created state model could not be persisted.void handleCaseFileItemTransition(String caseClientId, String caseFileItemId, CaseFileItemTransition caseFileItemTransition, TransitionData transitionData, EngineListeners engineListeners, PersistenceListeners persistenceListeners) throws IOException, JAXBException
Apply a case file item transition on the specified case file item.
caseClientId
- identifies the case (the case ID).caseFileItemId
- identifies the case file item upon which to apply the transition.caseFileItemTransition
- the transition to be applied.transitionData
- the transition dataengineListeners
- a callback object allowing the state engine to trigger actions in the calling client based on results (if any) from the executed transition.persistenceListeners
- persistence callbacks.JAXBException
- if there was a problem creating the state model from the XML.IOException
- if there was a problem creating the state model from the XML or if the initial state of the newly created state model could not be persisted.void handleDiscretionaryItemPlanning(String caseClientId, String discretionaryItemId, TransitionData transitionData, EngineListeners engineListeners, PersistenceListeners persistenceListeners) throws IOException, JAXBException
Apply the planning action on the specified discretionary item.
caseClientId
- identifies the case (the case ID).discretionaryItemId
- identifies the target item of the planning action.transitionData
- the transition dataengineListeners
- a callback object allowing the state engine to trigger actions in the calling client based on results (if any) from the executed transition.persistenceListeners
- persistence callbacks.JAXBException
- if there was a problem creating the state model from the XML.IOException
- if there was a problem creating the state model from the XML or if the initial state of the newly created state model could not be persisted.void handleCaseMigration(String caseClientId, String oldCmmnXml, String newCmmnXml, Map<String,String> clientProperties, TransitionData transitionData, EngineListeners engineListeners, PersistenceListeners persistenceListeners) throws IOException, JAXBException
caseClientId
- identifies the case (the case ID).oldCmmnXml
- the CMMN model definition the current run-time state is based on.newCmmnXml
- the CMMN model definition the current run-time state is to be migrated to.clientProperties
- a map of properties passed in by the caller. This map is passed along in the call-backs of the
MigrationListeners
interface.transitionData
- the transition dataengineListeners
- a callback object allowing the state engine to trigger actions in the calling client based on results (if any) from the executed transition.persistenceListeners
- persistence callbacks.JAXBException
- if there was a problem creating the state model from the XML.IOException
- if there was a problem creating the state model from the XML or if the initial state of the newly created state model could not be persisted.Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.