I am configuring/testing a new document workflow in M-Files: when a new document is created, a few separate assignments are created to trace the tasks user need to perform related to the document and send reminer email when due date is reached.
Here the my problem:
When the document reaches the final DONE state, all the assignments created earlier should be have been completed (the state transition is a proof that all the assignments are completed) . Instead of the user having to manual select each assignemnt and click: 'Mark Complete', I would like it to happen automatically. I belive the right way to implement this is: Workflow->(Done) State->Actions->"Run script". However I don't have enough VB expereince to code the script myself, or can I find a good example to begin with. I would appreciate very much if someone can share me some samples or give me a head start. Thank you in advance!
This is how my VB script should look like:
[list type=decimal]
- Retrieve the list of assignments assigned to the current document;
- For each assignment, if it is not completed, mark it as completed.
[/list]