How can I change the OverAllSLA of a Work Object after the Work Object has been created?
I have created a Work Object. During the processing of this Work Object, how can I change the OverAllSLA? So that the new OverAllSLA will be in effect for the life of the Work Object? Thank You in advanced.
Message was edited by: Marissa Rogers - moved from Mesh Help, added Category
Hello. Do you have one overall SLA and you want it changed to another or to add one to a case without one? I'd trace the way an overall SLA is initiated when you create a work object. I suspect there is probably an activity in the underlying process engine that does it (it may do a number of things, so you might not be able to just "call ActivityFoo" to make it happen, but it should give you a starting point for writing your own). That activity probably doesn't clean up an existing SLA, so if you are switching from SLA A to SLA B, you will likely need to delete the queue item for A so that you don't end up having them both fire..
I expect you won't have that property's value at the time the work object is created, right? If so, you can put some logic into your pyDefault data transform to choose the right SLA. Assuming you're in the middle of things, you're going to essentially remove the existing OverallSLA flow from the work object and create a new one for the other SLA (and possibly reset the clock if your SLA still needs to measure it's goal, etc from the date of work object creation). I know how it all works at a high level, but I don't know the specifics well enough to say how best to do that. You might be able to create an activity that does a ResumeFlow (or similar) on the OverallSLA flow to push the assignment to an end shape, thus removing the existing one, and then start the new OverallSLA flow? I expect there is probably a more elegant way