public class ActivitiProcessProvider extends BaseProcessProvider
Constructor and Description |
---|
ActivitiProcessProvider(org.flowable.engine.ProcessEngine processEngine,
EventBus eventBus,
TimeProvider timeProvider,
IdLookupService idLookupService,
CurrentTenantService currentTenantService) |
Modifier and Type | Method and Description |
---|---|
void |
cancel(String processId)
Cancels or terminates any background activities / processes associated with the given work object.
|
String |
create(AnyWorkObject template,
String parentId)
Creates a new entity based on the given template.
|
void |
delete(String processId)
Deletes the entity with the given id .
|
void |
deployDefinitions(List<? extends org.springframework.core.io.Resource> resources,
String deploymentName)
Deploys the given definition resources.
|
Collection<AnyWorkObjectDefinition> |
getDefinitions()
Returns all definitions known to the provider.
|
void |
signal(String signalName)
Send a signal with the specified
signalName . |
void |
signal(String signalName,
Map<String,Object> variables)
Send a signal with the specified
signalName . |
void |
signal(String signalName,
String processWorkObjectId)
Send a signal with the specified
signalName to a specified process work object. |
void |
signal(String signalName,
String processWorkObjectId,
Map<String,Object> variables)
Send a signal with the specified
signalName to a specified process work object. |
void |
update(String processId,
List<FieldChange> changes)
Updates the entity with the given id by applying the submitted changes.
|
getWorkObjectType
addListener, getId, removeListener
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getWorkObjectType
addListener, removeListener
getId
public static final String ID
public ActivitiProcessProvider(org.flowable.engine.ProcessEngine processEngine, EventBus eventBus, TimeProvider timeProvider, IdLookupService idLookupService, CurrentTenantService currentTenantService)
public Collection<AnyWorkObjectDefinition> getDefinitions()
DomainObjectProvider
Returns all definitions known to the provider.
getDefinitions
in interface DomainObjectProvider
getDefinitions
in class BaseDomainObjectProvider
public void deployDefinitions(List<? extends org.springframework.core.io.Resource> resources, String deploymentName)
DomainObjectProvider
Deploys the given definition resources. Typically, the implementation creates definition instances based on the given resources and notifies the provider listeners.
deployDefinitions
in interface DomainObjectProvider
deployDefinitions
in class BaseDomainObjectProvider
resources
- the definition resources to deploydeploymentName
- the name under which to deploy the given resourcespublic String create(AnyWorkObject template, String parentId)
DomainObjectProvider
Creates a new entity based on the given template.
Typically, the template is used to build the initial data set of the entity that is created. Multiple entities based on the same definition can be created at the same time. Each created entity can be uniquely identified by its id.
create
in interface DomainObjectProvider
create
in class BaseDomainObjectProvider
template
- the definition id of the entity to createparentId
- the parent work object ID (may be null
)public void delete(String processId)
DomainObjectProvider
Deletes the entity with the given id .
delete
in interface DomainObjectProvider
delete
in class BaseDomainObjectProvider
processId
- the external id of the entity to deletepublic void update(String processId, List<FieldChange> changes)
DomainObjectProvider
Updates the entity with the given id by applying the submitted changes.
update
in interface DomainObjectProvider
update
in class BaseDomainObjectProvider
processId
- the external id of the entity to updatechanges
- the changes to apply on the entitypublic void cancel(String processId)
WorkObjectProvider
Cancels or terminates any background activities / processes associated with the given work object.
If no background activity is present then this method will have no effect.
cancel
in interface WorkObjectProvider
cancel
in class BaseWorkObjectProvider
processId
- ID of the work object to be cancelledpublic void signal(String signalName)
ProcessProvider
Send a signal with the specified signalName
. All processes in the current tenant which are waiting for
the specified signal will be notified.
signalName
- the name of the signalpublic void signal(String signalName, Map<String,Object> variables)
ProcessProvider
Send a signal with the specified signalName
. All processes in the current tenant which are waiting for
the specified signal will be notified. The variables are stored on the process instance before
the signal is triggered.
signalName
- the name of the signalvariables
- the payload of the signal as variablespublic void signal(String signalName, String processWorkObjectId)
ProcessProvider
Send a signal with the specified signalName
to a specified process work object. All signals which are
waiting in the process will be notified.
signalName
- the name of the signalprocessWorkObjectId
- the work object id of the processpublic void signal(String signalName, String processWorkObjectId, Map<String,Object> variables)
ProcessProvider
Send a signal with the specified signalName
to a specified process work object. All signals which are
waiting in the process will be notified. The variables are stored on the process instance before
the signal is triggered.
signalName
- the name of the signalprocessWorkObjectId
- the work object id of the processvariables
- the payload of the signal as variablesCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.