The action println() takes a primitive value in argument (String, Int, Float, Boolean) and prints its content in a text file, by default in the BPM Events.ouput file. It prints one line and changes the line automatically for the next call. The general syntax is:
println( <primitive_value> )
For example:
rule abc
activated by EVT_A of BP Server::W_COMPLETED{WORKSTEPNAME : "DoTask",
PROCESSTEMPLATENAME : "Assign_A_Task_V2"}
then {
println("rule activated: abc ");
println("workstep completed:" + EVT_A.WORKSTEPNAME + " performer=" +
EVT_A.PERFORMER);
}
Note: println(), when used without explicit file definition, is intended as a development and debugging feature. If you want to collect outputs in a production environment, then use the file version described below, where println is used on an object of type file.
It is also possible to print the content of a composite value like an event, by converting it into a string value, using toString().