Class WorkflowAction

    • Constructor Detail

      • WorkflowAction

        public WorkflowAction()
        Deprecated.
    • Method Detail

      • getStartActionType

        @Deprecated
        public static EnumerationValue getStartActionType()
        Deprecated.
        since ages - as of release 4.3, please useWorkflowActionType.START

        Gets the constant value for the start actiontype.

        Returns:
        constant for start actiontype
      • getNormalActionType

        @Deprecated
        public static EnumerationValue getNormalActionType()
        Deprecated.
        since ages - as of release 4.3, please useWorkflowActionType.NORMAL

        Gets the constant value for the normal actiontype.

        Returns:
        constant for normal actiontype
      • getEndActionType

        @Deprecated
        public static EnumerationValue getEndActionType()
        Deprecated.
        since ages - as of release 4.3, please useWorkflowActionType.END

        Gets the constant value for the end actiontype.

        Returns:
        constant for end actiontype
      • getActiveStatus

        @Deprecated
        public static EnumerationValue getActiveStatus()
        Deprecated.
        since ages - as of release 4.3, please use WorkflowActionStatus.IN_PROGRESS

        Gets the constant value for the active status.

        Returns:
        constant for active status
      • getIdleStatus

        @Deprecated
        public static EnumerationValue getIdleStatus()
        Deprecated.
        since ages - as of release 4.3, please useWorkflowActionStatus.PENDING

        Gets the constant value for the idle status.

        Returns:
        constant for idle status
      • getCompletedStatus

        @Deprecated
        public static EnumerationValue getCompletedStatus()
        Deprecated.
        since ages - as of release 4.3, please useWorkflowActionStatus.COMPLETED

        Gets the constant value for the completed status.

        Returns:
        constant for completed status
      • getDisabledStatus

        @Deprecated
        public static EnumerationValue getDisabledStatus()
        Deprecated.
        since ages - as of release 4.3, please useWorkflowActionStatus.DISABLED

        Gets the constant value for the disabled status.

        Returns:
        constant for disabled status
      • getTerminatedStatus

        @Deprecated
        public static EnumerationValue getTerminatedStatus()
        Deprecated.
        since ages - as of release 4.3, please use WorkflowActionStatus.TERMINATED

        Gets the constant value for the terminated status.

        Returns:
        constant for terminated status
      • createItem

        protected Item createItem​(SessionContext ctx,
                                  ComposedType type,
                                  Item.ItemAttributeMap allAttributes)
                           throws JaloBusinessException
        Deprecated.
        Description copied from class: Item
        Has to be implemented for each concrete subtype of item. This method is responsible for creating a new item instance ( by calling managers, ejb homes, etc. ) during ComposedType.newInstance(Map).

        In case this method uses any of the attribute values during creation it is required to override Item.getNonInitialAttributes(SessionContext, ItemAttributeMap) too.
        Sn example:

        
         public static final String MY_ATTRIBUTE = "someAttribute"; ... protected Item createItem(SessionContext
         ctx, ComposedType type, Map allAttributes ) throws JaloBusinessException { MyManager man = ... return
         man.createMyItem( (String)allAttributes.get(MY_ATTRIBUTE) );
         // here MY_ATTRIBUTE is used for creation, so it must not be set again } protected Map getNonInitialAttributes(
         SessionContext ctx, Map allAttributes ) { // let superclass remove its own initial attributes Map ret =
         super.getNonInitialAttributes( ctx, allAttributes );
         // remove MY_ATTRIBUTE from all attributes since if has already been set ret.remove(MY_ATTRIBUTE); return ret; }
        
         
        Overrides:
        createItem in class GeneratedWorkflowAction
        Parameters:
        ctx - the current session context which this item is created within
        type - the actual item type ( since subtypes may not provide a own jalo class this may be different from the type which this method was implemented for )
        Returns:
        the new item instance
        Throws:
        JaloBusinessException - indicates an error during creation - any changes will be rollbacked
      • activate

        protected void activate()
        Deprecated.
        Sets the status of this action to active if it is not disabled. Sets new status, new activated date, first activated flag optional and optional sends activation mail.
      • idle

        protected void idle()
        Deprecated.
        Set the status of this action to idle without further checks.
      • isDisabled

        @Deprecated
        public boolean isDisabled()
        Deprecated.
        since ages - as of release 4.3, please use status comparison

        Checks whether the action is disabled.

        Returns:
        true if the action is disabled, false otherwise
      • isEndedByWorkflow

        @Deprecated
        public boolean isEndedByWorkflow()
        Deprecated.
        since ages - as of release 4.3, please use status comparison
      • isActive

        @Deprecated
        public boolean isActive()
        Deprecated.
        since ages - as of release 4.3, please use status comparison

        Checks whether the action is active.

        Returns:
        true if the action is action, false otherwise
      • disable

        public void disable()
        Deprecated.
        Disables the action.
      • tryActivate

        @Deprecated
        public void tryActivate()
        Deprecated.
        since ages - Tries to activate the action. If the action is already completed, it will try to activate its successors. If the action is not completed and all predecessors are completed the action will be activated.
      • predecessorsCompleted

        @Deprecated
        protected boolean predecessorsCompleted()
        Deprecated.
        since ages - Checks whether all predecessors are completed.
        Returns:
        true if all predecessors are completed, false otherwise
      • tryActivateSuccessors

        @Deprecated
        protected void tryActivateSuccessors()
        Deprecated.
        since ages - Tries to activate all successors.
      • tryActivatePredecessors

        @Deprecated
        protected void tryActivatePredecessors()
        Deprecated.
        since ages - Tries to activate all predecessors.
      • complete

        public void complete()
        Deprecated.
        Sets the status to complete and tries to activate all successors.
      • reject

        @Deprecated
        public void reject()
        Deprecated.
        since ages - Rejects the action. Sets the status to idle and activates all predecessors.
      • getDecisionByName

        public WorkflowDecision getDecisionByName​(java.lang.String name)
        Deprecated.
        Returns the decision with the given name, if this action has no such decision, returns null.
        Parameters:
        name -
        Returns:
        The WorkflowDecision with the given name. If there is no such WorkflowDecision it returns null.
      • getDecisionsCount

        @Deprecated
        public long getDecisionsCount()
        Deprecated.
        since ages - as of release 4.3, useWorkflowActionModel.getDecisions()

        Returns the number of decisions of this workflow action

        Returns:
        number of decisions