Interface NativeEngineWrapper
- All Known Implementing Classes:
CmmnEngineWrapper,CompositeEngineWrapper,IdBasedEngineWrapper,ProcessEngineWrapper,TaskEngineWrapper,WorkObjectEngineWrapper
public interface NativeEngineWrapper
Wraps native engines like (@link ProcessEngine),
CmmnEngine to provide workObjects-
Method Summary
Modifier and Type Method Description java.util.Optional<NativeEngineWrapper>accepts(java.lang.String workObjectId)Flag to allow to choose the right wrapper for the given workObjectvoidaddIdentityLinkToWorkObject(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 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.StringgetParentId(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, java.lang.String workObjectId)Get parentWorkObjectidentifierWorkObjectgetWorkObject(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, WorkObjectQuery workObjectQuery)Get workObject by given id and tenant
-
Method Details
-
accepts
Flag to allow to choose the right wrapper for the given workObject- Parameters:
workObjectId- workObject identifier- Returns:
- optionally returns NativeEngineWrapper which is able to handle request.
-
getHistoricWorkObjectByIdAndTenant
HistoricWorkObject getHistoricWorkObjectByIdAndTenant(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, HistoricWorkObjectQuery historicWorkObjectQuery)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
WorkObject getWorkObject(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, WorkObjectQuery workObjectQuery)Get workObject by given id and tenant- Parameters:
commandContext- command context under which query is performedworkObjectQuery- query to search for- Returns:
- workObject according to given query.
-
addIdentityLinkToWorkObject
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 validation- Parameters:
commandContext- command context under which query is performedworkObjectId- workObject identifieruserId- user identifiergroupId- group identifieridentityLinkType- identity link type
-
deleteIdentityLinkForWorkObject
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)Delete identity link for theWorkObject- Parameters:
commandContext- command context under which query is performedworkObjectId- workObject identifieruserId- user identifiergroupId- group identifieridentityLinkType- identity link type
-
getIdentityLinksForWorkObject
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 validation- Parameters:
commandContext- command context under which query is performedworkObjectId- workObject identifier
-
getHistoricIdentityLinksForWorkObject
java.util.List<org.flowable.identitylink.api.history.HistoricIdentityLink> getHistoricIdentityLinksForWorkObject(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, java.lang.String workObjectId)GetHistoricIdentityLinkfor theWorkObject- Parameters:
commandContext- command context under which query is performedworkObjectId- workObject identifier
-
getParentId
java.lang.String getParentId(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, java.lang.String workObjectId)Get parentWorkObjectidentifier- Parameters:
commandContext- command context under which query is performedworkObjectId- workObject identifier- Returns:
- parent workObjectId or null in the case when workObject is null
-