Class TaskEngineWrapper
java.lang.Object
com.flowable.workobject.engine.impl.wrapper.IdBasedEngineWrapper
com.flowable.workobject.engine.impl.wrapper.TaskEngineWrapper
- All Implemented Interfaces:
NativeEngineWrapper
public class TaskEngineWrapper extends IdBasedEngineWrapper
Wraps Task service methods to support workObject operations
-
Field Summary
Fields inherited from class com.flowable.workobject.engine.impl.wrapper.IdBasedEngineWrapper
idPrefix
-
Constructor Summary
Constructors Constructor Description TaskEngineWrapper(java.lang.String taskIdPrefix)
-
Method Summary
Modifier and Type Method Description void
addIdentityLinkToWorkObject(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, java.lang.String workObjectId, java.lang.String userId, java.lang.String groupId, java.lang.String identityLinkType)
Add identity link to theWorkObject
, without params validationvoid
deleteIdentityLinkForWorkObject(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, java.lang.String workObjectId, java.lang.String userId, java.lang.String groupId, java.lang.String identityLinkType)
Delete identity link for theWorkObject
java.util.List<org.flowable.identitylink.api.history.HistoricIdentityLink>
getHistoricIdentityLinksForWorkObject(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, java.lang.String workObjectId)
GetHistoricIdentityLink
for theWorkObject
HistoricWorkObject
getHistoricWorkObjectByIdAndTenant(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, HistoricWorkObjectQuery historicWorkObjectQuery)
Get historic workObject by given Idjava.util.List<org.flowable.identitylink.api.IdentityLink>
getIdentityLinksForWorkObject(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, java.lang.String workObjectId)
Get identity links for theWorkObject
, without params validationjava.lang.String
getParentId(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, java.lang.String workObjectId)
Get parentWorkObject
identifierWorkObject
getWorkObject(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, WorkObjectQuery query)
Get workObject by given id and tenantMethods inherited from class com.flowable.workobject.engine.impl.wrapper.IdBasedEngineWrapper
accepts
-
Constructor Details
-
TaskEngineWrapper
public TaskEngineWrapper(java.lang.String taskIdPrefix)
-
-
Method Details
-
getHistoricWorkObjectByIdAndTenant
public HistoricWorkObject getHistoricWorkObjectByIdAndTenant(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, HistoricWorkObjectQuery historicWorkObjectQuery)Description copied from interface:NativeEngineWrapper
Get historic workObject by given Id- Parameters:
commandContext
- command context under which query is donehistoricWorkObjectQuery
- historic workObject query- Returns:
- native historic object wrapped in the HistoricWorkObject implementation
-
getWorkObject
public WorkObject getWorkObject(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, WorkObjectQuery query)Description copied from interface:NativeEngineWrapper
Get workObject by given id and tenant- Parameters:
commandContext
- command context under which query is performedquery
- query to search for- Returns:
- workObject according to given query.
-
addIdentityLinkToWorkObject
public void addIdentityLinkToWorkObject(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, java.lang.String workObjectId, java.lang.String userId, java.lang.String groupId, java.lang.String identityLinkType)Description copied from interface:NativeEngineWrapper
Add identity link to theWorkObject
, without params validation- Parameters:
commandContext
- command context under which query is performedworkObjectId
- workObject identifieruserId
- user identifiergroupId
- group identifieridentityLinkType
- identity link type
-
deleteIdentityLinkForWorkObject
public void deleteIdentityLinkForWorkObject(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, java.lang.String workObjectId, java.lang.String userId, java.lang.String groupId, java.lang.String identityLinkType)Description copied from interface:NativeEngineWrapper
Delete identity link for theWorkObject
- Parameters:
commandContext
- command context under which query is performedworkObjectId
- workObject identifieruserId
- user identifiergroupId
- group identifieridentityLinkType
- identity link type
-
getIdentityLinksForWorkObject
public java.util.List<org.flowable.identitylink.api.IdentityLink> getIdentityLinksForWorkObject(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, java.lang.String workObjectId)Description copied from interface:NativeEngineWrapper
Get identity links for theWorkObject
, without params validation- Parameters:
commandContext
- command context under which query is performedworkObjectId
- workObject identifier
-
getHistoricIdentityLinksForWorkObject
public java.util.List<org.flowable.identitylink.api.history.HistoricIdentityLink> getHistoricIdentityLinksForWorkObject(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, java.lang.String workObjectId)Description copied from interface:NativeEngineWrapper
GetHistoricIdentityLink
for theWorkObject
- Parameters:
commandContext
- command context under which query is performedworkObjectId
- workObject identifier
-
getParentId
public java.lang.String getParentId(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, java.lang.String workObjectId)Description copied from interface:NativeEngineWrapper
Get parentWorkObject
identifier- Parameters:
commandContext
- command context under which query is performedworkObjectId
- workObject identifier- Returns:
- parent workObjectId or null in the case when workObject is null
-