tstickel - Thursday, September 18, 2014 12:58 PM:
As described in "Just Ask Innovator", under Innovator Administration->Workflows->Dynamic Assignments, an Activity Manager can change an assignment's "Assigned To" Identity. This feature works as described.
However, I would like to execute a Server Method when this is done. I have tried to trigger this method from the "On Assign" or "on Delegate" server event, but my method is not executed when the re-assignment is done.
Does anyone have an idea of how I might trigger my server method when the manager does a re-assignment?
Thanks
zahar - Friday, September 19, 2014 4:33 AM:
Hello,
I think you need to attach your method to Server Method of "Activity Assigment" ItemType.
tstickel - Friday, September 19, 2014 9:16 AM:
Zahar
Thanks for the response. I had hoped to avoid modification of "Activity Assignement" Itemtype definition because it is part of Core Innovator.
In addition, there may be some complications depending on how Aras has implemented dynamic reassignment.
If the Aras code does an update of the existing "Activity Assignment" record, then I would have to create two server methods: an onBeforeUpdate method to capture the id of the assigned Identity before the reassignment and pass this to an OnAfterUpdate method to determine whether the update had changed the assigned Identity. This is required because there are likely many other updates done to an "Activity Assignment" record that are not triggered by a dynamic assignment.
On the other hand, the Aras code might perform a delete of the existing "Activity Assignment" record and then an add of a new "Activity Assignment". In this case, I would have to create an onAfterAdd method. I doubt that an onAfterAdd method could determine whether the add was due to an initial assignment or to a dynamic reassignment.
I have not yet checked to see whether the Aras dynamic reassignment code uses the update or delete/add approach
zahar - Monday, September 22, 2014 12:39 PM:
The OOTB functionality of Activity Assignment not delete anything. The activity is marked as closed (if i remember the is_disabled flag is set and closed_on and closed_by properties are field with the data).
Abhijit - Wednesday, October 14, 2015 8:43 AM:
Hi Terry,
What was the final solution? Do we need to write server events for 'Activity Assignment' itemtype?
Thanks & Regards,
Abhijit
tstickel - Thursday, October 15, 2015 12:58 PM:
Abhijit
I did not implement a solution to the problem. My recollection is that writing server events for the Activity Assignment itemtype would work. Sometime in the next couple of months I will likely be moving the workflows that I developed in Innovator 9.4 over to 11.0. I may try to implement a solution then.
Terry