Class CaseInstanceService
- java.lang.Object
-
- org.flowable.ui.admin.service.engine.CaseInstanceService
-
@Service public class CaseInstanceService extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected FlowableClientServiceclientUtilstatic StringCURRENT_PLAN_ITEM_INSTANCE_LIST_URLstatic StringHISTORIC_ACTIVITY_INSTANCE_LIST_URLstatic StringHISTORIC_CASE_INSTANCE_URLstatic StringHISTORIC_DECISION_EXECUTION_LIST_URLstatic StringHISTORIC_TASK_LIST_URLstatic StringHISTORIC_VARIABLE_INSTANCE_LIST_URLprotected CmmnJobServicejobServiceprotected com.fasterxml.jackson.databind.ObjectMapperobjectMapperstatic StringRUNTIME_CASE_INSTANCE_CHANGE_STATE_URLstatic StringRUNTIME_CASE_INSTANCE_MIGRATE_URLstatic StringRUNTIME_CASE_INSTANCE_URLstatic StringRUNTIME_CASE_INSTANCE_VARIABLE_URLstatic StringRUNTIME_CASE_INSTANCE_VARIABLES
-
Constructor Summary
Constructors Constructor Description CaseInstanceService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchangePlanItemState(ServerConfig serverConfig, String caseInstanceId, com.fasterxml.jackson.databind.JsonNode changeActivityBody)voidcreateVariable(ServerConfig serverConfig, String caseInstanceId, com.fasterxml.jackson.databind.node.ObjectNode objectNode)voiddeleteVariable(ServerConfig serverConfig, String caseInstanceId, String variableName)voidexecuteAction(ServerConfig serverConfig, String caseInstanceId, com.fasterxml.jackson.databind.JsonNode actionBody)com.fasterxml.jackson.databind.JsonNodegetCaseInstance(ServerConfig serverConfig, String caseInstanceId)com.fasterxml.jackson.databind.JsonNodegetDecisionExecutions(ServerConfig serverConfig, String caseInstanceId)com.fasterxml.jackson.databind.JsonNodegetJobs(ServerConfig serverConfig, String caseInstanceId)com.fasterxml.jackson.databind.JsonNodegetPlanItemInstancesForCaseInstance(ServerConfig serverConfig, String caseInstanceId)com.fasterxml.jackson.databind.JsonNodegetTasks(ServerConfig serverConfig, String caseInstanceId)com.fasterxml.jackson.databind.JsonNodegetVariables(ServerConfig serverConfig, String caseInstanceId)com.fasterxml.jackson.databind.JsonNodelistCaseInstances(com.fasterxml.jackson.databind.node.ObjectNode bodyNode, ServerConfig serverConfig)com.fasterxml.jackson.databind.JsonNodelistCaseInstancesForCaseDefinition(com.fasterxml.jackson.databind.node.ObjectNode bodyNode, ServerConfig serverConfig)voidmigrateCaseInstance(ServerConfig serverConfig, String caseInstanceId, String migrationDocument)voidupdateVariable(ServerConfig serverConfig, String caseInstanceId, String variableName, com.fasterxml.jackson.databind.node.ObjectNode objectNode)
-
-
-
Field Detail
-
HISTORIC_CASE_INSTANCE_URL
public static final String HISTORIC_CASE_INSTANCE_URL
- See Also:
- Constant Field Values
-
HISTORIC_TASK_LIST_URL
public static final String HISTORIC_TASK_LIST_URL
- See Also:
- Constant Field Values
-
HISTORIC_VARIABLE_INSTANCE_LIST_URL
public static final String HISTORIC_VARIABLE_INSTANCE_LIST_URL
- See Also:
- Constant Field Values
-
HISTORIC_ACTIVITY_INSTANCE_LIST_URL
public static final String HISTORIC_ACTIVITY_INSTANCE_LIST_URL
- See Also:
- Constant Field Values
-
HISTORIC_DECISION_EXECUTION_LIST_URL
public static final String HISTORIC_DECISION_EXECUTION_LIST_URL
- See Also:
- Constant Field Values
-
RUNTIME_CASE_INSTANCE_URL
public static final String RUNTIME_CASE_INSTANCE_URL
- See Also:
- Constant Field Values
-
RUNTIME_CASE_INSTANCE_VARIABLES
public static final String RUNTIME_CASE_INSTANCE_VARIABLES
- See Also:
- Constant Field Values
-
RUNTIME_CASE_INSTANCE_VARIABLE_URL
public static final String RUNTIME_CASE_INSTANCE_VARIABLE_URL
- See Also:
- Constant Field Values
-
CURRENT_PLAN_ITEM_INSTANCE_LIST_URL
public static final String CURRENT_PLAN_ITEM_INSTANCE_LIST_URL
- See Also:
- Constant Field Values
-
RUNTIME_CASE_INSTANCE_CHANGE_STATE_URL
public static final String RUNTIME_CASE_INSTANCE_CHANGE_STATE_URL
- See Also:
- Constant Field Values
-
RUNTIME_CASE_INSTANCE_MIGRATE_URL
public static final String RUNTIME_CASE_INSTANCE_MIGRATE_URL
- See Also:
- Constant Field Values
-
clientUtil
@Autowired protected FlowableClientService clientUtil
-
jobService
@Autowired protected CmmnJobService jobService
-
objectMapper
@Autowired protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Method Detail
-
listCaseInstances
public com.fasterxml.jackson.databind.JsonNode listCaseInstances(com.fasterxml.jackson.databind.node.ObjectNode bodyNode, ServerConfig serverConfig)
-
listCaseInstancesForCaseDefinition
public com.fasterxml.jackson.databind.JsonNode listCaseInstancesForCaseDefinition(com.fasterxml.jackson.databind.node.ObjectNode bodyNode, ServerConfig serverConfig)
-
getCaseInstance
public com.fasterxml.jackson.databind.JsonNode getCaseInstance(ServerConfig serverConfig, String caseInstanceId)
-
getTasks
public com.fasterxml.jackson.databind.JsonNode getTasks(ServerConfig serverConfig, String caseInstanceId)
-
getDecisionExecutions
public com.fasterxml.jackson.databind.JsonNode getDecisionExecutions(ServerConfig serverConfig, String caseInstanceId)
-
changePlanItemState
public void changePlanItemState(ServerConfig serverConfig, String caseInstanceId, com.fasterxml.jackson.databind.JsonNode changeActivityBody) throws FlowableServiceException
- Throws:
FlowableServiceException
-
migrateCaseInstance
public void migrateCaseInstance(ServerConfig serverConfig, String caseInstanceId, String migrationDocument) throws FlowableServiceException
- Throws:
FlowableServiceException
-
getVariables
public com.fasterxml.jackson.databind.JsonNode getVariables(ServerConfig serverConfig, String caseInstanceId)
-
updateVariable
public void updateVariable(ServerConfig serverConfig, String caseInstanceId, String variableName, com.fasterxml.jackson.databind.node.ObjectNode objectNode)
-
createVariable
public void createVariable(ServerConfig serverConfig, String caseInstanceId, com.fasterxml.jackson.databind.node.ObjectNode objectNode)
-
deleteVariable
public void deleteVariable(ServerConfig serverConfig, String caseInstanceId, String variableName)
-
executeAction
public void executeAction(ServerConfig serverConfig, String caseInstanceId, com.fasterxml.jackson.databind.JsonNode actionBody) throws FlowableServiceException
- Throws:
FlowableServiceException
-
getJobs
public com.fasterxml.jackson.databind.JsonNode getJobs(ServerConfig serverConfig, String caseInstanceId)
-
getPlanItemInstancesForCaseInstance
public com.fasterxml.jackson.databind.JsonNode getPlanItemInstancesForCaseInstance(ServerConfig serverConfig, String caseInstanceId)
-
-