Class BpmnBusinessFunctionDelegate

java.lang.Object
com.flowable.platform.common.el.bpmn.BpmnBusinessFunctionDelegate
All Implemented Interfaces:
FlowableAstFunctionCreatorAndDelegate, org.flowable.common.engine.api.delegate.FlowableFunctionDelegate, org.flowable.common.engine.api.delegate.FlowableMultiFunctionDelegate, org.flowable.common.engine.impl.el.FlowableAstFunctionCreator

public class BpmnBusinessFunctionDelegate extends Object implements org.flowable.common.engine.api.delegate.FlowableMultiFunctionDelegate, FlowableAstFunctionCreatorAndDelegate
The following expressions are valid. All of them (unless otherwise specified) are also applicable in strict mode.

Business Key

  • bpmn:getBusinessKey() - Get the business key of the current process. Only applicable in a process scope
  • bpmn:getBusinessKey(<processId>) - Get the business key of the process with the given processId
  • bpmn:setBusinessKey(<businessKey>) - Set the business key of the current process to the given businessKey. Only applicable in a process scope
  • bpmn:setBusinessKey(<processId>, <businessKey>) - Set the business key of the process with the given processId to the given businessKey

Business Status

  • bpmn:getBusinessStatus() - Get the business status of the current process. Only applicable in a process scope
  • bpmn:getBusinessStatus(<processId>) - Get the business status of the process with the given processId
  • bpmn:setBusinessStatus(<businessStatus>) - Set the business status of the current process to the given businessStatus. Only applicable in a process scope
  • bpmn:setBusinessStatus(<processId>, <businessStatus>) - Set the business status of the process with the given processId to the given businessStatus
Author:
Filip Hrisafov
  • Field Details

    • strictMode

      protected final boolean strictMode
  • Constructor Details

    • BpmnBusinessFunctionDelegate

      public BpmnBusinessFunctionDelegate(boolean strictMode)
  • Method Details

    • prefix

      public String prefix()
      Specified by:
      prefix in interface org.flowable.common.engine.api.delegate.FlowableFunctionDelegate
    • localNames

      public Collection<String> localNames()
      Specified by:
      localNames in interface org.flowable.common.engine.api.delegate.FlowableFunctionDelegate
      Specified by:
      localNames in interface org.flowable.common.engine.api.delegate.FlowableMultiFunctionDelegate
    • functionMethod

      public Method functionMethod(String prefix, String localName) throws NoSuchMethodException
      Specified by:
      functionMethod in interface org.flowable.common.engine.api.delegate.FlowableFunctionDelegate
      Specified by:
      functionMethod in interface org.flowable.common.engine.api.delegate.FlowableMultiFunctionDelegate
      Throws:
      NoSuchMethodException
    • determineParameterTypes

      protected Class<?>[] determineParameterTypes(String localName)
    • createFunction

      public org.flowable.common.engine.impl.de.odysseus.el.tree.impl.ast.AstFunction createFunction(String name, int index, org.flowable.common.engine.impl.de.odysseus.el.tree.impl.ast.AstParameters parameters, boolean varargs, org.flowable.common.engine.impl.el.FlowableExpressionParser parser)
      Specified by:
      createFunction in interface org.flowable.common.engine.impl.el.FlowableAstFunctionCreator
    • determineParametersForFunction

      protected org.flowable.common.engine.impl.de.odysseus.el.tree.impl.ast.AstParameters determineParametersForFunction(String name, org.flowable.common.engine.impl.de.odysseus.el.tree.impl.ast.AstParameters parameters, org.flowable.common.engine.impl.el.FlowableExpressionParser parser)