Hello everybody,
I have a process that has an approval activity. Within this activity, There is a destination set of 5 approvers. The way I have setup the Destination rule is as follow:
- All at once
- Create a slot for each destination
- Resolve all roles and groups to users
Right before my InfoPath Client approval event, I have added an email event that has a customized URL to lead the approvers to their approval forms. It is setup as follow:
<a href="http://<MOSSServerName>/RuntimeServices/OpenInfoPathTask.aspx?K2Server=<K2ServerName>&SN=ProcessId_ActivityInstanceDestId&XmlFN=<FormName>&Lib=<LibraryName>&OpenAsWebPage=True&SPURL=<MOSSURL>&Single=True" target="_blank">
Click here to action approval task</a>
As you can see, I am using the Workflow Context Browser variables from the K2 Object Browser to build my URL.
All of this works fine, until I added an escalation to this activity as a reminder. This escalation is setup as an email event. I have setup the recipients of the email using the Destination User checkbox (same as the regular email event). The email contains the same custom URL.
When I run the process, the Approval activity gets kicked off properly, but when it reaches the escalation, I am getting an error that says:
ActivityInstanceDestination property not available on given context.
What really puzzles me is that since the approval activity and its escalation uses the same destination rule and destination set, how come I am only getting the error on the escalation?
Thanks in advance.
Brian Lo