README revision 7d83b6a03bd7b63f2eb6404d6cc1e4c074391ea7
9e201d78ac6efdd08550263f2e146cdb76e9d49bvboxsyncWorkflow Sample
9e201d78ac6efdd08550263f2e146cdb76e9d49bvboxsync===============
9e201d78ac6efdd08550263f2e146cdb76e9d49bvboxsync
9e201d78ac6efdd08550263f2e146cdb76e9d49bvboxsyncThis sample demonstrates a typical use case of a workflow for provisioning. After starting this sample, the first
9e201d78ac6efdd08550263f2e146cdb76e9d49bvboxsyncstep is to load users from the XML file into your managed/user store, like so:
9e201d78ac6efdd08550263f2e146cdb76e9d49bvboxsync
c98fb3e16fcd571a790eab772c0c66173d225205vboxsynccurl -k -H "Content-type: application/json" -u "openidm-admin:openidm-admin" -X POST "https://localhost:8443/openidm/recon?_action=recon&mapping=systemXmlfileAccounts_managedUser"
e90bc1b0a8fb83acc1c1dc65176f143163cbb1a4vboxsync
c98fb3e16fcd571a790eab772c0c66173d225205vboxsyncThis will create two users: user1 and manager1. Both have the same password, "Welcome1".
c98fb3e16fcd571a790eab772c0c66173d225205vboxsync
c98fb3e16fcd571a790eab772c0c66173d225205vboxsyncThis sample also adds two new business roles to the configuration : "manager" and "employee". User1 is an employee and manager1 is
c98fb3e16fcd571a790eab772c0c66173d225205vboxsynca manager.
c98fb3e16fcd571a790eab772c0c66173d225205vboxsync
c98fb3e16fcd571a790eab772c0c66173d225205vboxsyncEmployees have access to initiate a "Contract Onboarding" process. This is a request to add a contractor to the system, with an
c98fb3e16fcd571a790eab772c0c66173d225205vboxsyncoption to include them in the xml file. Once the form is completed, the request is sent for manager approval. Any user with the
9e201d78ac6efdd08550263f2e146cdb76e9d49bvboxsync"manager" role can claim this task. Manager1 is our only manager, so login with that user and claim the task. You may then
9e201d78ac6efdd08550263f2e146cdb76e9d49bvboxsynceither approve or deny the request. If approved, the user will be created in the managed/user store. If it was requested that
9e201d78ac6efdd08550263f2e146cdb76e9d49bvboxsyncthe user be provisioned into the XML file, then that will also be done. You can now login as the new user and see the notification
9e201d78ac6efdd08550263f2e146cdb76e9d49bvboxsyncdisplay informing the user of the dates they have been granted. Also, user1 will be notified of the result of the manager's decision.
9e201d78ac6efdd08550263f2e146cdb76e9d49bvboxsync
9e201d78ac6efdd08550263f2e146cdb76e9d49bvboxsync
9e201d78ac6efdd08550263f2e146cdb76e9d49bvboxsyncThis workflow uses embedded templates to build a more sophisticated input form. This is how the form is being validated with the
9e201d78ac6efdd08550263f2e146cdb76e9d49bvboxsyncserver-side policy rules.