Hi everyone,
I'm BA/QA for a K2 solution we're developing. As part of my QA, I've identified the need to test to ensure the activities that are contained in a path followed by an escalation works.
The escalation is currently set for X days. It's not very realistic to wait days for the test to proceed so i need to find a way to do it faster.
What is everyone's strategy for testing esclations? We don't really want to be swapping the "elapsed time" value for something smaller like "10 seconds" instead of "10 days"
Page 1 / 1
Use a default escalation and edit the code to something like this:
Dim Days As Integer = 0
Dim Hours As Integer = 0
Dim Minutes As Integer = 0
Dim Seconds As Integer = 0
'Hours = K2.ProcessInstance.DataFields.Item("SLAHours").Value
Minutes = K2.ProcessInstance.DataFields.Item("SLAHours").Value
K2.SetEscalationRule(Days, Hours , Minutes, Seconds,0)
Dim Days As Integer = 0
Dim Hours As Integer = 0
Dim Minutes As Integer = 0
Dim Seconds As Integer = 0
'Hours = K2.ProcessInstance.DataFields.Item("SLAHours").Value
Minutes = K2.ProcessInstance.DataFields.Item("SLAHours").Value
K2.SetEscalationRule(Days, Hours , Minutes, Seconds,0)
As David suggested, changing the Escalation time value through datafields is one way of doing it.
Alternatively, you can use String Table entries to define the 'Days', 'Hours' and 'Minutes' values. These string table entry values can then be manipulated through K2.net Service Manager.
Both of these solutions is unfortunately 'swapping' of escalation time value but apart from changing your system clock, I can't think of any other way.
Regards,
Ockert
Alternatively, you can use String Table entries to define the 'Days', 'Hours' and 'Minutes' values. These string table entry values can then be manipulated through K2.net Service Manager.
Both of these solutions is unfortunately 'swapping' of escalation time value but apart from changing your system clock, I can't think of any other way.
Regards,
Ockert
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.