How to have workflow DEBUG statements in SystemOut?
book
Article ID: KB0091785
calendar_today
Updated On:
Products
Versions
TIBCO Collaborative Information Manager
-
Not Applicable
-
Description
Resolution: You can use the debug statements in the transitions between the activities as follows:
<Transition FromActivity="ProductAuthorizationWorkitem" ToActivity="MyApplyrulebase"> <Description>Just to print the activity flow for debugging purpose</Description> <Rule> <Parameter name="thisStepID" type="string" eval="variable" direction="in">StepID</Parameter> <Parameter name="result" type="boolean" direction="out"/> <Condition format="bsh"><![CDATA[ result = true; System.out.println( "Debug statement:---- Transition from ProductAuthorizationWorkitem to MyApplyrulebase is " + result + ", and Step id is:" + thisStepID) ; ]]></Condition> </Rule> </Transition>
In the above example you, it is printing a debug statement stating that the following activity will be called after the present activity(ProductAuthorizationWorkitem), and it will also print the out parameter of the ProductAuthorizationWorkitem activity StepID.
These entire debug statements will be printed in the $WAS_HOME/logs/<server-name>/SystemOut.log file.
Issue/Introduction
How to have workflow DEBUG statements in SystemOut?