TRIRIGA

 View Only
  • 1.  Using TRIRIGA workflow to perform system delete?

    Posted 6 days ago
    Within TRIRIGA it fairly simple to create a system query for triTask records and add a system delete button that can delete any selected triTask record regardless of the record status.  Well I have a need to create a workflow that can be used in a similar manner, but when I perform the delete function in the workflow (via the Trigger task) it will only delete the selected triTask record if it is in draft status.  I think the workflow is being limited by the state transition table applied to the triTask records.  Does anyone know of a way to perform a system delete in TRIRIGA using a workflow that can delete any triTask record regardless of record status?

    ------------------------------
    Mike A.
    ------------------------------


  • 2.  RE: Using TRIRIGA workflow to perform system delete?

    IBM Champion
    Posted 5 days ago
    There is no system delete within TRIRIGA workflow. As you have discovered you have to use a trigger task, which triggers a state transition. In your example only the records in the triDraft state are being transitioned to the null state (deleted). There are two potential solutions to this.

    The first method is you have to modify the state transition family of the triTask BO to add a transition to the null state from each state that you want to be able to delete from. Just create the transition to match the one on the triDraft state. Once you have a valid transition to the null state from each other state, then you can delete the records regardless of their state. You would need to do this for each BO in the module that you want to be able to delete.

    The second method is only possible if there is a path to null from any state. If there is then you can use switch tasks to check the state, and then trigger the appropriate state transition to move the record closer to the null state. Sometimes this will take a few different state transitions in order to get the record to null. However, often times there is not always a path to null from a given state and then you have to add it like the first method.

    I hope this helps. If you have any questions don't hesitate to reach out. You can message me directly here or on LinkedIn.

    --Mark

    ------------------------------
    Mark Johnson
    IBM Champion, Senior TRIRIGA Architect
    Wipro
    ------------------------------



  • 3.  RE: Using TRIRIGA workflow to perform system delete?

    Posted 5 days ago
    Mark, thanks for providing a response which clearly explains the situation for me in TRIRIGA.  Now I won't waste time trying to do something in TRIRIGA that simply cannot be done (perform a system delete via workflow).  I'll review the state transitions for triTask records once again and decide on best course of action.

    ------------------------------
    Mike A.
    ------------------------------