Highlighted
Honored Contributor.. Honored Contributor..
Honored Contributor..
250 views

Process Designer RuleSet not executed

I have ruleset in place that sets some variables which inturn control read-only property of some fields on chnage managemegnt forms. I am calling the RuleSet in the process designer from the initialization and On Display of the phase. 

When a user searches for a change this ruleset is executed as expected, but when the user double lciks on tasks under the Task tab and views the Task and then cancels out of the task, the control returns to the change. at this point the ruleset is not executed. 

 

Any help is appreciated. Thanks

Tags (1)
0 Likes
1 Reply
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: Process Designer RuleSet not executed

I've also stumbled this at least once. I guess it was request/requestTask combination which caused some troubles. Only solution I could find was to move the code is used to Display Screen, which gets run every time the screen is redrawn.

If you want to try running the whole ruleset from JS code, it's also worth trying. I've used a following code - please note, that the references to current and record's previous version may differ from module to module (request vs. probsummary, for example).

var file=system.vars.$L_file;
var oldFile=system.vars.$filesave;

var ruleName="MyRuleHere";
system.library.CaseExchange_RuleExecute.executeSingleRuleSet(file,oldFile,ruleName);
---
Moving on, this account is no longer active. Best regards, Kelalek
- So Long, and Thanks for All the Fish
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.