Try OpenEdge Now
skip to main content
Customization Guide
Customizing the Business Process Portal : Customizing a workstep to use concurrent processing
 

Customizing a workstep to use concurrent processing

If you want to create a custom JSP involving redirection, linking, or using AJAX calls, then to enable concurrency, you must pass the fiid parameter as a part of all URL queries or POST requests. You can obtain the value of this parameter by using the call request.getParameter(“fiid”). OpenEdge Business Process Server provides the following API to this parameter in your queries.
public static String makeSessionURL(String url, String fid);
The API is automatically added to the JSP import list as shown in the following example.
<a href=”<%=VirtualSessionManager.makeSessionURL(MyCustomJump, request.getParameter(\“fiid\”)%>”>Go to my activity</a>
When you generate the URL using JavaScript, the JavaScript must obtain the fiid parameter value as a part of JSP generated variable. For example:
<script> var globalfid = ‘<% = request.getParameter("fiid")%>’; </script>
If a page contains the fiid value as a part of the form value, then you can retrive and use it in JavaScript expressions as shown below:
url += '&fiid='+ encodeURIComponent(document. myTaskForm.fiid.value);
Alternatively, JavaScript can parse the request query, and extract the parameter value. If you add the value in URL using JavaScript, then its value must be encodeURIComponent(). You also must sanitize the JavaScript value using the utility method SBMUtil.jsEncode().
If you use a custom-generated, task-access URL, then it must include the fiid parameter. The following rules are recommended while including the fiid parameter as task URLs are generated out of the scope of any existing flow ID, and every task must obtain a unique flow ID.
*If the URL contains a bizsite_taskId parameter, then prefix 'wi' to the fiid value as shown in the following example.
bizsite_taskId=3527&fiid=wi3527
*If the URL contains a wiId parameter, then prefix 'wi' to the fiid value.
wiId=3527&skip=false&fiid=wi3527
*If the URL contains a cwiId parameter, then prefix 'ci' to the fiid value as shown in the following example.
cwiId=3527&cenabled=false&skip=false&fiid=ci3527
It is recommended that you use a unique fiid value in the scope of a single user session.