How can you make your custom workflow process script go to a Nobody AutoComplete state to auto grant approval without any manual approval
Your workflow uses custom scripts whenever the needs of the out of the box workflow scripts do not match your environment needs. Within that process you can make a custom participant resolver which you can use to find who you wish to approve the task in question. Whenever the approver cannot be identified whether using a custom participant resolver or an OOTB resolver it will move to a Nobody AutoComplete state. In this instance we want to force it to go there so no approvers are required.
Environment
Release: Component: IDMGR
Resolution
Two items are required:
Modify your custom workflow process in Workpoint Designer. Select the process within Designer and go to the appropriate node preceding auto-approval. Right-click to edit the properties of this node and navigate to the user data tab. Set the property APPROVERS_REQUIRED to a value of NO.
Make sure your custom workflow participant-resolver code is returning 0 participants (i.e. no approvers required) correctly so that the script transitions to auto-approval. This means that in your code, the vector maintaining your active participant resolver list must be emptied and reset. This can be done as follows, for example, if vector partResolver is the vector of participant resolvers;
partResolver.clear(); // the clear method empties out this vector so IM does not expect any resolvers