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
    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 the WorkObject, without params validation
    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 the WorkObject
    java.util.List<org.flowable.identitylink.api.history.HistoricIdentityLink> getHistoricIdentityLinksForWorkObject​(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, java.lang.String workObjectId)
    Get HistoricIdentityLink for the WorkObject
    HistoricWorkObject getHistoricWorkObjectByIdAndTenant​(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, HistoricWorkObjectQuery historicWorkObjectQuery)
    Get historic workObject by given Id
    protected 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 the WorkObject, without params validation
    java.lang.String getParentId​(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, java.lang.String workObjectId)
    Get parent WorkObject identifier
    WorkObject getWorkObject​(org.flowable.common.engine.impl.interceptor.CommandContext commandContext, WorkObjectQuery query)
    Get workObject by given id and tenant

    Methods inherited from class com.flowable.workobject.engine.impl.wrapper.IdBasedEngineWrapper

    accepts

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • 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 done
      historicWorkObjectQuery - 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 performed
      query - 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 the WorkObject, without params validation
      Parameters:
      commandContext - command context under which query is performed
      workObjectId - workObject identifier
      userId - user identifier
      groupId - group identifier
      identityLinkType - 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 the WorkObject
      Parameters:
      commandContext - command context under which query is performed
      workObjectId - workObject identifier
      userId - user identifier
      groupId - group identifier
      identityLinkType - 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 the WorkObject, without params validation
      Parameters:
      commandContext - command context under which query is performed
      workObjectId - 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
      Get HistoricIdentityLink for the WorkObject
      Parameters:
      commandContext - command context under which query is performed
      workObjectId - 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 parent WorkObject identifier
      Parameters:
      commandContext - command context under which query is performed
      workObjectId - 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)