Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Part 2 Automation

The next part is about setting up an automation for manifesting the approval workflow converting the approved sign ups into actual user systems in the DAM Center.

...

When a user has been approved in the workflow, the user in the system behind is not impacted. This requires what we call an “automation”.

Below is an image of such an automation:

...

Expand
titleSSU approval
Code Block
trigger "Business Workflow Stage Entered" {
    type = "Business Workflow Stage Entered"
    resolves = "ForEach"
    workflow = "Sign-up/user creation"
    stage_name = "approved"
}

foreach "ForEach" {
    type = "ForEach"
    resolves = "Approve Member"
    variable = "@sourceItemIds"
    as = "@sourceItemId"
}

action "Convert Member Item Id To Member Id" {
    type = "Convert Member Item Id To Member Id"
    needs = []
    member_item_id = "@sourceItemId"
    member_id = "@memberId"
}

action "Approve Member" {
    type = "Approve Member"
    needs = "Convert Member Item Id To Member Id"
    member_id = "@memberId"
    approved = "true"
}
Info

Please note that the foreach is needed as newer iterations of automation only handle lists. This will ensure that your DSL will handle lists of members - to assets for that matter - in the future.

Configuration:

Step

Configuration

Explanation

Business Workflow Stage Entered

Workflow: select the correct user workflow from the dropdown list

Stage Name: select the approved stage from that workflow from the dropdown list

Here, the administrator should indicate the preciously configured user approval workflow and then select at which stage the new user are approved, and therefore this automation should be triggered.

Convert Member Id To Member Item Id

Inputs:

Member Item Id: @sourceItemIds

Outputs:

Member Id: @memberid

Member Item Ids are converted into Member Ids, necessary for the approval process.

Approve Member

Member Id: @memberid

Approved: checked

The newly created user is approved in the DAM Center and therefore can log in and start using the system.

...