Class FormAgentInvokerImpl
java.lang.Object
com.flowable.platform.service.form.invocation.FormAgentInvokerImpl
- All Implemented Interfaces:
FormAgentInvoker
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected final AgentRepositoryServiceprotected final AgentRuntimeServiceprotected final com.fasterxml.jackson.databind.ObjectMapperprotected final SecurityHelper -
Constructor Summary
ConstructorsConstructorDescriptionFormAgentInvokerImpl(AgentRuntimeService agentRuntimeService, AgentRepositoryService agentRepositoryService, SecurityHelper securityHelper, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancurrentUserHasAccess(Map<String, Object> extraSettings, SecurityScope securityScope) protected StringgetAgentModelKey(Map<String, Object> agentModelSettings, String fieldId) protected StringgetAgentModelOperationKey(Map<String, Object> agentModelSettings, String fieldId) invoke(org.flowable.form.api.FormInfo formInfo, String fieldId, Map<String, Object> agentInvocationInput, SecurityScope securityScope) protected AgentInvocationResultResponseResponseperformInvokeAgent(String agentKey, String operationKey, Map<String, Object> agentInvocationInput, SecurityScope securityScope)
-
Field Details
-
AGENT_MODEL_PERMISSION_GROUPS
- See Also:
-
AGENT_MODEL_KEY
- See Also:
-
AGENT_MODEL_OPERATION_KEY
- See Also:
-
agentRuntimeService
-
agentRepositoryService
-
securityHelper
-
objectMapper
protected final com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Constructor Details
-
FormAgentInvokerImpl
public FormAgentInvokerImpl(AgentRuntimeService agentRuntimeService, AgentRepositoryService agentRepositoryService, SecurityHelper securityHelper, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
invoke
public AgentInvocationResultResponseResponse invoke(org.flowable.form.api.FormInfo formInfo, String fieldId, Map<String, Object> agentInvocationInput, SecurityScope securityScope) - Specified by:
invokein interfaceFormAgentInvoker
-
getAgentModelKey
-
getAgentModelOperationKey
-
performInvokeAgent
protected AgentInvocationResultResponseResponse performInvokeAgent(String agentKey, String operationKey, Map<String, Object> agentInvocationInput, SecurityScope securityScope) -
currentUserHasAccess
protected boolean currentUserHasAccess(Map<String, Object> extraSettings, SecurityScope securityScope)
-