Hi,
I have taken another look at this today and have managed to do what I want using the following method:
In a previous javascript step set an Instance variable with a list of the operators I want to be approvers.
Then in the approval task I have used a filter assignment type and added a set of dummy conditions that will not match existing operators:
email equals "noone@nowhere.com"
I then used the approval task advanced tab and in the initialisation javascript I modified the conditions to match the approvers from the instance variable:
activity.assigneeFilter.where.condition[operatorcount].expr = "@email = '" + operator.@email + "'";
This seems to work and I can set up any approvers I want dynamically
Thanks
Jeremy