process level escalation: howto?
Hi,
On the project I'm developing I ran into a problem I couldn't solve. This leads to some questions about _process level_ escalations.
There is a business process in which there is an "SLA due time". When the process reaches this time, a notification occurs. This time is computed when the process starts and is stored in an xs:dateTime type node 'SLATime' in an XML document stored in an XML field called 'ProcessXml'. So I configured a process level escalation with 'Escalate On' rule, setting this XML field and its node (ProcessXml/SLATime) as the dynamic datetime of the escalation. And, when I start the process, I fill this XML field containing this time before calling StartProcessInstance.
But, escalation doesn't fire. It only fires when I set it manually in the K2 studio as a fix date/time.
Could you please answer me that:
- Can I use an XML field node as a dynamic escalation date? If not, what are the possibilities for storing a date/time? I wouldn't use SmartObjects if possible..
- What is the format of this XML date? Please give a sample (as a string) and any type (e.g. UTC).
- When is this evaluated? At CreateProcessInstance, or when calling StartProcessInstance?
- How can I update this date? While the process is active, SLA time can be dynamically set and I need to recalculate and refresh the escalation date in the process! So, when user changes SLA time, the process escalation should change! How to do this? Just update the XML field?
- Is there some kind of external API (like SourceCode.Workflow.Management) with which I can manipulate a specific process' process level escalations? Please provide some code samples for this.
Thanks in advance,
Peter
On the project I'm developing I ran into a problem I couldn't solve. This leads to some questions about _process level_ escalations.
There is a business process in which there is an "SLA due time". When the process reaches this time, a notification occurs. This time is computed when the process starts and is stored in an xs:dateTime type node 'SLATime' in an XML document stored in an XML field called 'ProcessXml'. So I configured a process level escalation with 'Escalate On' rule, setting this XML field and its node (ProcessXml/SLATime) as the dynamic datetime of the escalation. And, when I start the process, I fill this XML field containing this time before calling StartProcessInstance.
But, escalation doesn't fire. It only fires when I set it manually in the K2 studio as a fix date/time.
Could you please answer me that:
- Can I use an XML field node as a dynamic escalation date? If not, what are the possibilities for storing a date/time? I wouldn't use SmartObjects if possible..
- What is the format of this XML date? Please give a sample (as a string) and any type (e.g. UTC).
- When is this evaluated? At CreateProcessInstance, or when calling StartProcessInstance?
- How can I update this date? While the process is active, SLA time can be dynamically set and I need to recalculate and refresh the escalation date in the process! So, when user changes SLA time, the process escalation should change! How to do this? Just update the XML field?
- Is there some kind of external API (like SourceCode.Workflow.Management) with which I can manipulate a specific process' process level escalations? Please provide some code samples for this.
Thanks in advance,
Peter
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.