Hi,
I have a use case where I need to redirect a user to a StartForm when user clicks on the link in the email. I'm able to generate this StartProcessLink (Pm has specific process parameters that needs to be sent as well) successfully when I try to execute in an expression rule but when I try to call this expression rule in ProcessModel's Script Task to get the output, it is returning a null value, any suggestions on how to approach it?
Note: We cannot Trigger a Pm and keep it active as we do not know the time frame of when user would be working in it. It can range from a day to a month
Any suggestions appreciated.
Thanks in Advance.
Discussion posts and replies are publicly visible
If you're after a Start Form, it seems like it would be far simpler to simply have the email contain a link directly to a Site tab that's configured to use a start form for that express purpose.
Thanks for the Response Mike. But no, that is not the case. If it is just a start from I would understand the approach, but we are providing / passing context parameters based on the Unique ID for generating this form.
If you take the back-end outputs of a!startProcessLink(), i'm guessing you could assemble it (manually) into a URL a user could click on. I haven't tried this exactly, so your mileage may vary - and i'd caution you that it's pretty far from a supported use case.
Correct, I'm able to do this, It executes perfectly fine and I'm able to build the URL from an Expression Editor but, When I try to execute the rule in PM or by calling the rule in PM its not working(Returns a null output). So, I'm looking for any other alternate suggestions, so that it can work.
How exactly are you trying to call it from your PM? I assume you mean a PM that tries to assemble the URL then send the email? Can you share some of the code you're trying?
Edit to add: I can see that the output of the rule changes significantly (for reasons i'm not clear on) when called in the context of a process instance rather than in an expression rule. I'm guessing this is because it's not really intended to be used in this manner.