Posted: 13 Nov 2015 5:19 EST Last activity: 13 Nov 2015 15:01 EST
Need to call activity on every assignment
We got a requirement where for particular work type after each assignment either to work basker/worklist we have to call a activity which will post user information to other system. I tough of using declare trigger for Assign-worklist and Assign-workbasket, is there any OOTB option for this like pyDefault or anything?
You have many places where you can plug this extra work, but do you have to wait for the completeness of the action ? So if the user run the assignment and is having an error due to a missing required fields for example ? Do you have to send your information to the external system anyway ?
To answer your original question, I don't think we have an OOTB approach, which PRPC version are you running ? You can think about something quite complex like having a generic pre-Activity called on each of your FlowAction, something very simple like adding the extra work on the "AddWorkHistory" process or something medium like a DeclareTrigger but as far as I'm aware nothing fully OOTB.
Would the "Work-.NewDefaults" or "Assign-.NewDefaults"activities help here ? Try searching for "old:NewDefaults" (I know it sounds like a contradiction but putting "old:" in front of the name makes the search work) /Eric
Adding to what Eric mentioned earlier, Assign-.NewDefaults activity will be good enough to achieve what Swami is looking for. This is a placeholder (stub) activity with one empty & commented step. Override this into your application ruleset (keeping AppliesTo class as Assign- ). This way, you can post information to other system using this Assign-.NewDefaults activity which gets triggered for both Workbasket and Worklist assignments.