Highlighted
Frequent Contributor.
Frequent Contributor.
264 views

How to close a page by JavaScript or by RuleSet

Hello,

I have the necessity to close a page once a transition (Process Designer) is completed.

Ex: in the OOB Workflow "Generic Task", the transition "Close" runs 3 RuleSets, the last one is a Wizard. Once the wizard is completed the operator is sent back to the task form, I would like change this beahvior, I would like to have something like this:

once the wizard is completed I want to close also the task form.

Any suggestion?

Thanks in advance.

Giorgio

0 Likes
1 Reply
Highlighted
Acclaimed Contributor.. Acclaimed Contributor..
Acclaimed Contributor..

Re: How to close a page by JavaScript or by RuleSet

This should be pretty easy to do, even using Process Designer.

In the Workflow, select the Phase where you want this exit to occur.  If I'm understanding your question, in this case it would be the 'Closed' phase.

In the Details tab of that phase, scroll down to the link for 'Additional Phase Information' near the bottom.  This will open up a screen where you can set the behavior for what the tool will do when someone moves into this phase or out of this phase.  In this case, we want the system to exit the user from the Task record upon successful entry of the phase, so modify the 'Open Behavior (when not the first phase)' selection and set 'Open phase and exit', then save.

When the Task record finishes the transition to the Closed phase, after the 'On Enter' rulesets run, it will then exit the Task record.

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.