Class ExternalTaskWrapper.ExternalTaskContext

  • All Implemented Interfaces:
    jadex.bpmn.model.task.ITaskContext
    Enclosing class:
    ExternalTaskWrapper

    public static class ExternalTaskWrapper.ExternalTaskContext
    extends java.lang.Object
    implements jadex.bpmn.model.task.ITaskContext
    Transferrable context.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected jadex.bpmn.model.MActivity mactivity
      The acticity.
      protected java.util.Map<java.lang.String,​java.lang.Object> params
      The parameter values flattened.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      jadex.bpmn.model.MActivity getActivity()
      Get the activity.
      jadex.bpmn.model.MBpmnModel getBpmnModel()
      Get the model.
      jadex.bpmn.model.MActivity getModelElement()
      Get the modelelement.
      java.util.Map<java.lang.String,​java.lang.Object> getParameters()
      Get the params.
      java.lang.Object getParameterValue​(java.lang.String name)
      Get a parameter value.
      java.lang.Object getPropertyValue​(java.lang.String name)
      Get a property value.
      boolean hasParameterValue​(java.lang.String name)
      Test if context has a parameter.
      void setActivity​(jadex.bpmn.model.MActivity mactivity)
      Set the mactivity.
      void setOrCreateParameterValue​(java.lang.String name, java.lang.Object value)
      Set or create a parameter value directly in this thread.
      void setOrCreateParameterValue​(java.lang.String name, java.lang.Object key, java.lang.Object value)
      Set or create a parameter value directly in this thread.
      void setParameters​(java.util.Map<java.lang.String,​java.lang.Object> params)
      Set the params.
      void setParameterValue​(java.lang.String name, java.lang.Object value)
      Set a parameter value.
      void setParameterValue​(java.lang.String name, java.lang.Object key, java.lang.Object value)
      Set a parameter value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • params

        protected java.util.Map<java.lang.String,​java.lang.Object> params
        The parameter values flattened.
      • mactivity

        protected jadex.bpmn.model.MActivity mactivity
        The acticity.
    • Constructor Detail

      • ExternalTaskContext

        public ExternalTaskContext()
        Create a new context.
      • ExternalTaskContext

        public ExternalTaskContext​(ProcessThread thread)
        Create a new context.
    • Method Detail

      • getBpmnModel

        public jadex.bpmn.model.MBpmnModel getBpmnModel()
        Get the model.
        Specified by:
        getBpmnModel in interface jadex.bpmn.model.task.ITaskContext
        Returns:
        The bpmn model.
      • getActivity

        public jadex.bpmn.model.MActivity getActivity()
        Get the activity.
        Specified by:
        getActivity in interface jadex.bpmn.model.task.ITaskContext
        Returns:
        The activity.
      • getModelElement

        public jadex.bpmn.model.MActivity getModelElement()
        Get the modelelement.
        Specified by:
        getModelElement in interface jadex.bpmn.model.task.ITaskContext
        Returns:
        The modelelement.
      • getParameterValue

        public java.lang.Object getParameterValue​(java.lang.String name)
        Get a parameter value.
        Specified by:
        getParameterValue in interface jadex.bpmn.model.task.ITaskContext
        Parameters:
        name - The name.
        Returns:
        The object.
      • getPropertyValue

        public java.lang.Object getPropertyValue​(java.lang.String name)
        Get a property value.
        Specified by:
        getPropertyValue in interface jadex.bpmn.model.task.ITaskContext
        Parameters:
        name - The name.
        Returns:
        The object.
      • hasParameterValue

        public boolean hasParameterValue​(java.lang.String name)
        Test if context has a parameter.
        Specified by:
        hasParameterValue in interface jadex.bpmn.model.task.ITaskContext
        Parameters:
        name - The name.
        Returns:
        True, if has parameter.
      • setParameterValue

        public void setParameterValue​(java.lang.String name,
                                      java.lang.Object key,
                                      java.lang.Object value)
        Set a parameter value.
        Specified by:
        setParameterValue in interface jadex.bpmn.model.task.ITaskContext
        Parameters:
        name - The name.
        key - The key.
        value - The value.
      • setParameterValue

        public void setParameterValue​(java.lang.String name,
                                      java.lang.Object value)
        Set a parameter value.
        Specified by:
        setParameterValue in interface jadex.bpmn.model.task.ITaskContext
        Parameters:
        name - The name.
        value - The value.
      • setOrCreateParameterValue

        public void setOrCreateParameterValue​(java.lang.String name,
                                              java.lang.Object value)
        Set or create a parameter value directly in this thread.
        Specified by:
        setOrCreateParameterValue in interface jadex.bpmn.model.task.ITaskContext
        Parameters:
        name - The parameter name.
        value - The parameter value.
      • setOrCreateParameterValue

        public void setOrCreateParameterValue​(java.lang.String name,
                                              java.lang.Object key,
                                              java.lang.Object value)
        Set or create a parameter value directly in this thread.
        Specified by:
        setOrCreateParameterValue in interface jadex.bpmn.model.task.ITaskContext
        Parameters:
        name - The parameter name.
        key - An optional helper (index, key etc.)
        value - The parameter value.
      • getParameters

        public java.util.Map<java.lang.String,​java.lang.Object> getParameters()
        Get the params.
        Returns:
        The params.
      • setParameters

        public void setParameters​(java.util.Map<java.lang.String,​java.lang.Object> params)
        Set the params.
        Parameters:
        params - The params to set.
      • setActivity

        public void setActivity​(jadex.bpmn.model.MActivity mactivity)
        Set the mactivity.
        Parameters:
        mactivity - The mactivity to set.