Hi there,
I am scanning the R2U processes thoroughly.
In Incident management process i found a line of code
eval(functionLibrary);
which goes into every piece of script in the workflow graph.
What does it even do? Just pasting it in my cmdb instance process does not work( it throws an error ).
I am guessing it is a part of a bigger picture in R2U. Could you please explain just a little?
Moreover, i tried replicating behaviour of the code in r2u as follows:
I got a lookup “lookup1” with a field “answer1” with description “hi there”
I have a process attribute that is a lookup to “lookup1” named Message
In workflow graph, I wrote
Message = cmdb.selectLookupByCode(“lookup1”,“answer1”);
If you decide to update your process class(add an attribute) after having started developing workflow graph, you need to manually add DataField of corresponding type to the xpdl file. Without that, you wont (for god only knows what reason) be able to access those variables through scripts. You will be able to access them through human interactions. Why? Ask tecnoteca :v
As for eval(functionLibrary);
there was an extra datatype called functionLibrary in r2u workflows, containing some custom functions and imports.