public class CaseVariablePersistenceListeners extends OnePersistenceListeners
Modifier and Type | Field and Description |
---|---|
static String |
CASE_ENGINE_STATE_VARIABLE
The variable name under which the complete state is stored in the form of a JSON string.
|
static String |
CASE_TRANSITION_DATA_VARIABLE
The variable name under which certain data like trigger items and parameters are stored between separate requests (between ENABLE and MANUAL_START of plan items).
|
static String |
STATES_PREFIX
The prefix for the variable name under which to expose selected run-time plan item states.
|
CASE_DEFINITION_ID, CASE_TASK_PARAMETERS, PARENT_CASE_ID
Constructor and Description |
---|
CaseVariablePersistenceListeners(com.edorasware.commons.core.any.AnyWorkObjectService anyWorkObjectService,
com.edorasware.commons.core.any.AnyWorkObjectDefinitionService workObjectDefinitionService,
String exposePlanItemTypes,
String exposePlanItemStates) |
Modifier and Type | Method and Description |
---|---|
String |
retrieveCaseCmmnXml(String caseClientId,
com.google.common.collect.ImmutableMap<String,String> clientProperties)
Get the Case CMMN XML string from persistent storage.
|
com.edorasware.cmmn.model.persistence.CasePlanModelData |
retrieveCasePlanModelData(String caseClientId,
com.google.common.collect.ImmutableMap<String,String> clientProperties) |
String |
retrieveCaseState(String caseClientId,
com.google.common.collect.ImmutableMap<String,String> clientProperties) |
String |
retrieveTransitionDataCache(String caseClientId,
com.google.common.collect.ImmutableMap<String,String> clientProperties) |
boolean |
storeCasePlanModelData(String caseClientId,
com.google.common.collect.ImmutableMap<String,String> clientProperties,
com.edorasware.cmmn.model.persistence.CasePlanModelData modelState) |
void |
storeCaseState(String caseClientId,
com.google.common.collect.ImmutableMap<String,String> clientProperties,
String state) |
void |
storeTransitionDataCache(String caseClientId,
com.google.common.collect.ImmutableMap<String,String> clientProperties,
String transitionDataCache) |
public static final String CASE_ENGINE_STATE_VARIABLE
public static final String CASE_TRANSITION_DATA_VARIABLE
public static final String STATES_PREFIX
public String retrieveCaseCmmnXml(String caseClientId, com.google.common.collect.ImmutableMap<String,String> clientProperties)
Get the Case CMMN XML string from persistent storage. The implementation checks the passed clientProperties for the case definition ID. If there, it uses that definitionId to get the XML string. Otherwise, the Case Work Item is loaded and the definitionId is retrieved via the Case Work Item.
Retrieving the XML string
for the first time, there may not be a CaseWorkItem yet. In this case, the case definitionID must be passed via the client properties. In subsequent calls (restoring
an existing Case Work Item), the client properties may be null
. In this case, the case definitionId is looked up via the Case Work Item.
caseClientId
- the ID of the case.clientProperties
- a map holding custom client properties. (These were passed in during StateModel
creation.)public String retrieveCaseState(String caseClientId, com.google.common.collect.ImmutableMap<String,String> clientProperties)
public boolean storeCasePlanModelData(String caseClientId, com.google.common.collect.ImmutableMap<String,String> clientProperties, com.edorasware.cmmn.model.persistence.CasePlanModelData modelState) throws IOException
IOException
public void storeCaseState(String caseClientId, com.google.common.collect.ImmutableMap<String,String> clientProperties, String state)
public String retrieveTransitionDataCache(String caseClientId, com.google.common.collect.ImmutableMap<String,String> clientProperties) throws IOException
IOException
public void storeTransitionDataCache(String caseClientId, com.google.common.collect.ImmutableMap<String,String> clientProperties, String transitionDataCache) throws IOException
IOException
public com.edorasware.cmmn.model.persistence.CasePlanModelData retrieveCasePlanModelData(String caseClientId, com.google.common.collect.ImmutableMap<String,String> clientProperties) throws IOException
IOException
Copyright © 2010 - 2017 edorasware ag. All Rights Reserved.