public abstract class BaseHandler extends Object implements org.springframework.context.ApplicationContextAware
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
BaseHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
archiveCase(String caseClientId,
com.edorasware.commons.core.entity.State state,
com.edorasware.commons.core.entity.UserId runAsUser)
Archive a case by setting the passed state.
|
protected void |
archiveParentCaseRecursive(com.edorasware.cmmn.model.structure.CasePlanModel caze,
com.edorasware.commons.core.entity.UserId runAsUser,
com.edorasware.cmmn.model.TransitionData transitionData,
com.edorasware.cmmn.engine.hooks.PersistenceListeners persistenceListeners)
If we're archiving a non-blocking sub-case, we may have to check for terminal parent cases which can now also be archived.
|
protected Map<String,String> |
extractTaskDefinitionLookup(com.edorasware.commons.core.any.AnyWorkObjectDefinition caseDefinition)
Blindly extract the taskDefinitions json string from the case definition XML and return it de-serialized.
|
protected com.edorasware.commons.core.any.AnyWorkObjectDefinitionService |
getAnyWorkObjectDefinitionService() |
org.springframework.context.ApplicationContext |
getApplicationContext() |
protected BaseVariableHandlingService |
getBaseVariableHandlingService() |
protected com.edorasware.one.caze.internal.DefaultCaseArchiveManager |
getCaseArchiveManager() |
protected com.edorasware.gear.core.caze.CaseId |
getCaseId(com.edorasware.cmmn.model.structure.PlanItem planItem) |
protected com.edorasware.gear.core.caze.CaseService |
getCaseService() |
protected com.edorasware.cmmn.engine.core.CmmnService |
getCmmnService() |
protected com.edorasware.commons.core.identity.CurrentUserService |
getCurrentUserService() |
ExtensionPoint |
getExtensionPoint() |
protected String |
getHumanTaskClientRef(com.edorasware.cmmn.model.structure.HumanTask humanTask)
Get the clientRef property from a human task.
|
protected OnePersistenceListeners |
getOnePersistenceListeners() |
protected com.edorasware.commons.core.persistence.PrimaryKeyGenerator |
getPrimaryKeyGenerator() |
protected com.edorasware.gear.core.process.ProcessDefinitionService |
getProcessDefinitionService() |
protected com.edorasware.gear.core.process.ProcessService |
getProcessService() |
protected com.edorasware.cmmn.engine.core.StateModelManager |
getStateModelManager() |
protected com.edorasware.commons.core.any.AnyWorkObjectService |
getWorkObjectService() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
protected void |
storeCaseVariableIndexed(com.edorasware.gear.core.caze.CaseId caseId,
com.edorasware.cmmn.model.structure.PlanItem planItem,
String variableName,
Object variableValue)
Store a value as a variable on the case.
|
protected Map<String,String> extractTaskDefinitionLookup(com.edorasware.commons.core.any.AnyWorkObjectDefinition caseDefinition)
caseDefinition - the case definitionprotected boolean archiveCase(String caseClientId, com.edorasware.commons.core.entity.State state, com.edorasware.commons.core.entity.UserId runAsUser)
null, will archive the case with the privileges of the owner of the case to be archived.true, if the case was archived (state change), false if the case was already archived.protected void archiveParentCaseRecursive(com.edorasware.cmmn.model.structure.CasePlanModel caze,
com.edorasware.commons.core.entity.UserId runAsUser,
com.edorasware.cmmn.model.TransitionData transitionData,
com.edorasware.cmmn.engine.hooks.PersistenceListeners persistenceListeners)
protected String getHumanTaskClientRef(com.edorasware.cmmn.model.structure.HumanTask humanTask)
Get the clientRef property from a human task.
For backward compatibility: In old CMMN case state models, the client ref could be null, in which case it is extracted from the case.
humanTask - of interest.protected void storeCaseVariableIndexed(com.edorasware.gear.core.caze.CaseId caseId,
com.edorasware.cmmn.model.structure.PlanItem planItem,
String variableName,
Object variableValue)
variableName parameter
and may optionally be suffixed by '[]' in which case the value is stored in a map indexed by plan item instance Id.
The purpose of the optional [] suffix is to enable the modeller to store values related to multiple instance plan items.
caseId - the work item Id of the case on which to store.planItem - the plan item.variableName - the variable name.variableValue - the variable value.protected com.edorasware.gear.core.caze.CaseId getCaseId(com.edorasware.cmmn.model.structure.PlanItem planItem)
protected com.edorasware.gear.core.process.ProcessDefinitionService getProcessDefinitionService()
protected com.edorasware.gear.core.process.ProcessService getProcessService()
protected com.edorasware.commons.core.any.AnyWorkObjectDefinitionService getAnyWorkObjectDefinitionService()
protected com.edorasware.commons.core.any.AnyWorkObjectService getWorkObjectService()
protected com.edorasware.gear.core.caze.CaseService getCaseService()
protected com.edorasware.one.caze.internal.DefaultCaseArchiveManager getCaseArchiveManager()
protected com.edorasware.commons.core.identity.CurrentUserService getCurrentUserService()
protected OnePersistenceListeners getOnePersistenceListeners()
protected com.edorasware.cmmn.engine.core.StateModelManager getStateModelManager()
protected com.edorasware.cmmn.engine.core.CmmnService getCmmnService()
protected com.edorasware.commons.core.persistence.PrimaryKeyGenerator getPrimaryKeyGenerator()
protected BaseVariableHandlingService getBaseVariableHandlingService()
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext in interface org.springframework.context.ApplicationContextAwarepublic org.springframework.context.ApplicationContext getApplicationContext()
public ExtensionPoint getExtensionPoint()
Copyright © 2010 - 2017 edorasware ag. All Rights Reserved.