Symptoms
When using package and deploy in Appit, if a role already exists and contains members in the target environment, then after the deployment the role has no members. The workaround is to be aware of it and manually add the members back after deploying.
Diagnoses
Repro steps:
1. Create a new Role 'Yiyang Test Role' with two users 'Support01 and Support Admin' -- this was not dynamic
2. Create a SP list, with default SmO, simple view (Title, Created by), simple form (1 view) and simple workflow
3. Workflow contains 1 User task which has 'Approve/Reject' actions, sent to 'Yiyang Test Role' all at once
4. Placeholders in rest of workflow
5. Deploy workflow
6. Package and save to desktop
7. Deploy to list
8. Go into K2 Management -> Roles and we see that 'Yiyang Test Role' is empty
-I have tried deploying to a list inside the same site collection, and to a different site collection. Both rendered the same results. -Tried an IIS Reset but issue still occurs
Resolution
Work around is to manually re-add the members to the roles again after deployment