Class CmmnEngineWrapper
java.lang.Object
com.flowable.workobject.engine.impl.wrapper.IdBasedEngineWrapper
com.flowable.workobject.engine.impl.wrapper.CmmnEngineWrapper
- All Implemented Interfaces:
NativeEngineWrapper
public class CmmnEngineWrapper extends IdBasedEngineWrapper
Wraps CmmnEngine methods to support workObject operations
-
Field Summary
Fields inherited from class com.flowable.workobject.engine.impl.wrapper.IdBasedEngineWrapper
idPrefix -
Constructor Summary
Constructors Constructor Description CmmnEngineWrapper(java.lang.String caseIdPrefix) -
Method Summary
Modifier and Type Method Description voidaddIdentityLinkToWorkObject(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 validationvoiddeleteIdentityLinkForWorkObject(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 theWorkObjectjava.util.List<org.flowable.identitylink.api.history.HistoricIdentityLink>getHistoricIdentityLinksForWorkObject(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, java.lang.String workObjectId)GetHistoricIdentityLinkfor theWorkObjectHistoricWorkObjectgetHistoricWorkObjectByIdAndTenant(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, HistoricWorkObjectQuery historicWorkObjectQuery)Get historic workObject by given Idprotected java.util.List<org.flowable.identitylink.api.IdentityLink>getIdentityLinks(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, java.lang.String workObjectId)java.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.StringgetParentId(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, java.lang.String workObjectId)Get parentWorkObjectidentifierWorkObjectgetWorkObject(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
-
CmmnEngineWrapper
public CmmnEngineWrapper(java.lang.String caseIdPrefix)
-
-
Method Details
-
getHistoricWorkObjectByIdAndTenant
public HistoricWorkObject getHistoricWorkObjectByIdAndTenant(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, HistoricWorkObjectQuery historicWorkObjectQuery)Description copied from interface:NativeEngineWrapperGet 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:NativeEngineWrapperGet 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:NativeEngineWrapperAdd 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:NativeEngineWrapperDelete 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:NativeEngineWrapperGet 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:NativeEngineWrapperGetHistoricIdentityLinkfor 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:NativeEngineWrapperGet parentWorkObjectidentifier- Parameters:
commandContext- command context under which query is performedworkObjectId- workObject identifier- Returns:
- parent workObjectId or null in the case when workObject is null
-
getIdentityLinks
protected java.util.List<org.flowable.identitylink.api.IdentityLink> getIdentityLinks(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, java.lang.String workObjectId)
-