Question
How to start a flow when a portal is launched in the same harness, using Pega OOB Rules?
Hi,
In our requirement, we need to launch a portal which in turn calls a flow. The start flow action should display in the current harness(middle panel). We have a left panel in the portal containing two links, by clicking the first link, the same flow should be called and displayed in current harness(middle panel). Link 2 is configured with another flow, on click of which displays the flowacton in the same harness.
Initially in the launch of portal, to start the flow in the current harness we are using the following Java Script to achieve the functionality.
<script language="JavaScript">
function openWO()
{
createNewWork("XXXXX-YYYYY-Work","","Flow Name","&=","","");
}
window.setTimeout("openWO()", 2000);
</script>
Is there any Pega out of box features to achieve the above mentioned functionality? Please provide your ideas.
Thanks
karthick
***Updated by Moderator: Marissa. Removed user added #helpme and Ask the Expert group tags. Apologies for confusion, shouldn't have been an end-user option***
Hi
So basically you have two requirements
1. How to start a flow directly upon launching a portal ?
2. How to start a flow on click of a link on left panel ?
To answer the first one :
You have to think of using some API like DesktopWrapper.
For the second one :
Consider using navigation rules and configure onClick-Create work action by passing appropriate class and flow name. Refer screenshot below.