public class InvokeServiceCmd extends Object implements org.flowable.common.engine.impl.interceptor.Command<ServiceInvocationResponse>
Modifier and Type | Field and Description |
---|---|
protected ServiceInvocationBuilder |
serviceInvocationBuilder |
Constructor and Description |
---|
InvokeServiceCmd(ServiceInvocationBuilder serviceInvocationBuilder) |
Modifier and Type | Method and Description |
---|---|
ServiceInvocationResponse |
execute(org.flowable.common.engine.impl.interceptor.CommandContext commandContext) |
protected Object |
getLookupId(ServiceDefinitionModel serviceDefinitionModel,
ServiceInvocationResponse invocationResponse)
Search for the lookup id value in the response according the mapping in the service definition and do proper handling of the response type (e.g.
|
protected ServiceDefinitionEntity |
getServiceDefinition(ServiceInvocationContextImpl context,
org.flowable.common.engine.impl.interceptor.CommandContext commandContext) |
protected ServiceDefinitionModel |
getServiceDefinitionModel(ServiceDefinitionEntity serviceDefinition,
org.flowable.common.engine.impl.interceptor.CommandContext commandContext) |
protected ServiceInvoker |
getServiceInvoker(ServiceDefinitionModel serviceDefinitionModel,
org.flowable.common.engine.impl.interceptor.CommandContext commandContext) |
protected ServiceOperation |
getServiceOperation(ServiceDefinitionModel serviceDefinitionModel) |
protected ServiceInvocationResponse |
invokeService(ServiceDefinitionModel serviceDefinitionModel,
ServiceOperation serviceOperation,
ServiceInvoker serviceInvoker,
ServiceInvocationContextImpl context,
org.flowable.common.engine.impl.interceptor.CommandContext commandContext) |
protected ServiceDefinitionEntity |
resolveServiceDefinitionByReferenceKey(ServiceInvocationContextImpl context,
ServiceDefinitionEntityManager serviceDefinitionEntityManager,
org.flowable.common.engine.impl.interceptor.CommandContext commandContext) |
protected void |
validateParameters() |
protected ServiceInvocationBuilder serviceInvocationBuilder
public InvokeServiceCmd(ServiceInvocationBuilder serviceInvocationBuilder)
public ServiceInvocationResponse execute(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
execute
in interface org.flowable.common.engine.impl.interceptor.Command<ServiceInvocationResponse>
protected void validateParameters()
protected ServiceDefinitionEntity getServiceDefinition(ServiceInvocationContextImpl context, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
protected ServiceDefinitionEntity resolveServiceDefinitionByReferenceKey(ServiceInvocationContextImpl context, ServiceDefinitionEntityManager serviceDefinitionEntityManager, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
protected ServiceDefinitionModel getServiceDefinitionModel(ServiceDefinitionEntity serviceDefinition, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
protected ServiceInvoker getServiceInvoker(ServiceDefinitionModel serviceDefinitionModel, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
protected ServiceOperation getServiceOperation(ServiceDefinitionModel serviceDefinitionModel)
protected ServiceInvocationResponse invokeService(ServiceDefinitionModel serviceDefinitionModel, ServiceOperation serviceOperation, ServiceInvoker serviceInvoker, ServiceInvocationContextImpl context, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
protected Object getLookupId(ServiceDefinitionModel serviceDefinitionModel, ServiceInvocationResponse invocationResponse)
serviceDefinitionModel
- the service definition model where the lookup id mapping is taken frominvocationResponse
- the invocation response containing the lookup id field and its valueCopyright © 2019. All rights reserved.