In this article, we will explain how to avoid seeing the routing screen when using Web Entry to access a case and instead directly display the screen for the next task.
Step 1: Create a Trigger
The first step is to create a trigger that uses the PMFCaseLink() function and set the result of this function to a variable. This function generates a link to the next task in the case, which can be used to skip the routing screen. This step is important to avoid errors due to negative case numbers. Use the following code to create a new trigger:
@@app_link = PMFCaseLink(@@APPLICATION, @@SYS_SYS, ‘en’, @@SYS_SKIN);
Note: For detailed instructions on how to create a trigger, please refer to Trigger Management in our ProcessMaker 3 Documentation.
Step 2: Assign the trigger
Once the trigger has been created, call it in the Before Assignment section of the step properties..
Step 3: Configure the Web Entry Properties
In the Custom URL field of web entry properties, use the variable created in step 2. This will ensure that the web entry redirects to the next task in the case, skipping the routing screen.