Class AgentInstanceBuilderImpl
java.lang.Object
com.flowable.agent.engine.impl.runtime.AgentInstanceBuilderImpl
- All Implemented Interfaces:
AgentInstanceBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected final org.flowable.common.engine.impl.interceptor.CommandExecutorprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected String -
Constructor Summary
ConstructorsConstructorDescriptionAgentInstanceBuilderImpl(org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor) -
Method Summary
Modifier and TypeMethodDescriptionagentDefinitionId(String agentDefinitionId) Set the id of the agent definitionagentDefinitionKey(String agentDefinitionKey) Set the key of the agent definition, latest version of the agent definition with the given key.agentDefinitionParentDeploymentId(String parentDeploymentId) When looking up for an agent definition by key it would first lookup for an agent definition within the given parent deployment.callbackId(String callbackId) Sets the callback id to the agent instance.callbackScopeId(String callbackScopeId) Sets the callback scope id to the agent instance.callbackType(String callbackType) Sets the callback type to the agent instance.getName()Sets the name to the agent instance.operationKey(String operationKey) Set the operation key of the operation used to invoke the agentreferenceId(String referenceId) Sets the reference id to the agent instance.referenceType(String referenceType) Sets the reference type to the agent instance.start()Start the agent instancestartAsync(boolean exclusive) Start the agent instance asynchronously.startUserId(String startUserId) Set the start user id of agent instanceSet the tenant id of agent instanceSets variables passed to the agent instance.withUserGroupKeys(Set<String> userGroupKeys) Set the permission group keys of an agent instancewithUserId(String userId) Set the permission user id of an agent instance
-
Field Details
-
commandExecutor
protected final org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor -
agentDefinitionId
-
agentDefinitionKey
-
agentDefinitionParentDeploymentId
-
operationKey
-
startUserId
-
userId
-
userGroupKeys
-
tenantId
-
name
-
callbackScopeId
-
callbackId
-
callbackType
-
referenceId
-
referenceType
-
variables
-
-
Constructor Details
-
AgentInstanceBuilderImpl
public AgentInstanceBuilderImpl(org.flowable.common.engine.impl.interceptor.CommandExecutor commandExecutor)
-
-
Method Details
-
agentDefinitionId
Description copied from interface:AgentInstanceBuilderSet the id of the agent definition- Specified by:
agentDefinitionIdin interfaceAgentInstanceBuilder
-
agentDefinitionKey
Description copied from interface:AgentInstanceBuilderSet the key of the agent definition, latest version of the agent definition with the given key. If agentDefinitionId was set this will be ignored- Specified by:
agentDefinitionKeyin interfaceAgentInstanceBuilder
-
agentDefinitionParentDeploymentId
Description copied from interface:AgentInstanceBuilderWhen looking up for an agent definition by key it would first lookup for an agent definition within the given parent deployment. Then it will fallback to the latest agent definition with the given key.- Specified by:
agentDefinitionParentDeploymentIdin interfaceAgentInstanceBuilder
-
operationKey
Description copied from interface:AgentInstanceBuilderSet the operation key of the operation used to invoke the agent- Specified by:
operationKeyin interfaceAgentInstanceBuilder
-
startUserId
Description copied from interface:AgentInstanceBuilderSet the start user id of agent instance- Specified by:
startUserIdin interfaceAgentInstanceBuilder
-
withUserId
Description copied from interface:AgentInstanceBuilderSet the permission user id of an agent instance- Specified by:
withUserIdin interfaceAgentInstanceBuilder
-
withUserGroupKeys
Description copied from interface:AgentInstanceBuilderSet the permission group keys of an agent instance- Specified by:
withUserGroupKeysin interfaceAgentInstanceBuilder
-
tenantId
Description copied from interface:AgentInstanceBuilderSet the tenant id of agent instance- Specified by:
tenantIdin interfaceAgentInstanceBuilder
-
variables
Description copied from interface:AgentInstanceBuilderSets variables passed to the agent instance.- Specified by:
variablesin interfaceAgentInstanceBuilder
-
name
Description copied from interface:AgentInstanceBuilderSets the name to the agent instance.- Specified by:
namein interfaceAgentInstanceBuilder
-
callbackScopeId
Description copied from interface:AgentInstanceBuilderSets the callback scope id to the agent instance.- Specified by:
callbackScopeIdin interfaceAgentInstanceBuilder
-
callbackId
Description copied from interface:AgentInstanceBuilderSets the callback id to the agent instance.- Specified by:
callbackIdin interfaceAgentInstanceBuilder
-
callbackType
Description copied from interface:AgentInstanceBuilderSets the callback type to the agent instance.- Specified by:
callbackTypein interfaceAgentInstanceBuilder
-
referenceId
Description copied from interface:AgentInstanceBuilderSets the reference id to the agent instance.- Specified by:
referenceIdin interfaceAgentInstanceBuilder
-
referenceType
Description copied from interface:AgentInstanceBuilderSets the reference type to the agent instance.- Specified by:
referenceTypein interfaceAgentInstanceBuilder
-
start
Description copied from interface:AgentInstanceBuilderStart the agent instance- Specified by:
startin interfaceAgentInstanceBuilder
-
startAsync
Description copied from interface:AgentInstanceBuilderStart the agent instance asynchronously. This means that the invocation of the agent will be done asynchronously. The preparation would be done synchronously.- Specified by:
startAsyncin interfaceAgentInstanceBuilder- Parameters:
exclusive- whether the async job should be exclusive (only applicable if the callback has been configured)
-
getAgentDefinitionId
-
getAgentDefinitionKey
-
getAgentDefinitionParentDeploymentId
-
getOperationKey
-
getStartUserId
-
getUserId
-
getUserGroupKeys
-
getTenantId
-
getName
-
getCallbackScopeId
-
getCallbackId
-
getCallbackType
-
getReferenceId
-
getReferenceType
-
getVariables
-