Debugging Workflows in TRIRIGA
CarolinaGiglio 270002S4CT Comment (1) Visits (5194)
Ok.. I have a workflow in TRIRIGA, and clicked in the action button on the Form, but nothing has happened.. how do I debug the application?
First of all, when creating a workflow, if you want TRIRIGA to keep the instance for debugging or simply consulting purposes, you have to check the option "Save Workflow Instances", in the Workflow Properties, displayed when selecting the start task of the workflow.
In the Admin Console, in the "Workflow Agent Manager" object, the option "Workflow Instance Recording" should be other than "Never". So, if the option in the console is "Always", the workflows instances will be always recorded, if the option selected is "As configured in the Workflow", it will be recorded if the option to save the workflow instance is checked, etc..
Note that there's a Database Admin task in the Admin Console that is responsible for cleaning older workflows instances that are not required by the system.
After running the workflow, if the form's properties "Show Workflow Instance" check box is checked, you can go to the form that fires the workflow and click on the "Workflow Instance" tab.
This tab shows the name of each workflow that ran, the current status of the workflow, and when the workflow was fired.
The workflow names are hyperlinks. Clicking on it, the workflow editor window is openned, to show the workflow instance that ran.
Workflow tasks that have been performed are highlighted with a green dashed border, and tasks that fail are highlighted with a red dashed border.
Clicking on the task that has failed, you have, in the right side of the properties section, one hiperlink called "View Error". Clicking on this, a window called "Workflow View Error" is oppened, with detailed information.
Another way to see the instance of the workflow that has ran is in the Workflow Builder, selecting the workflow that you want to verify, clicking on "List All Instances" on the top of the workflows list, and then clicking in the latest instance that ran.
Hope this information was usefull for you.