Integrate workflow with self registration

This topic has 6 replies, 2 voices, and was last updated 5 years, 7 months ago by leonard.alba.

  • Author
    Posts
  • #8118
     leonard.alba
    Participant

    hi,

    How do I update the OpenIDM UI so that after user submit profile details (and after kba) from Self Registration, it will call my workflow instead of creating the user directly. The workflow I have created have approval nodes and if rejected means the user profile must not be created.

    regards,
    Leonard

    #8156
     Hanns Nolan
    Participant

    Hi Leonard,

    there is a sample usecase that describes this use case. Please got to your installation under ../samples/usecase/workflow/newUserCreate.bar.

    The use case description you will find in the readme.

    regards,
    Hanns

    #8159
     leonard.alba
    Participant

    hi Hanns,

    Thank you for the prompt reply. From the readme file, I only found this newUserCreate.bar file on “Usecase 2 – New User Onboarding”. This usecase is for another user (HR) requesting another user profile in the system. The request/workflow link automatically appears on any authorized user’s self service dashboard once you placed the workflow (bpmn20.xml or bar file) on the workflow/ folder. I actually copied my workflow file from that sample.

    However, my usecase is Self Registration. When a user self register, by default, the user is simply created after the form (userDetails-initial.html) is filled and submitted or , if KBA is enabled, after the KBA question and answers are submitted. What I need is to trigger the workflow on that submit action.

    Hopefully there is a way to do this as this should be a standard procedure in an enterprise environment.

    thanks and regards,
    Leonard

    #8164
     Hanns Nolan
    Participant

    Hi Leonard,
    if you are not using the workflow forms, you should be able to trigger the workflow in the html template.

    Hanns

    #8204
     leonard.alba
    Participant

    hi Hanns,

    I can call it from the template, but it does not stop it from calling its default function to create the user directly. If only I know which javascript calls the create user REST API on Self Registration then I can Replace it with the workflow instead.

    thanks and regards,
    Leonard

    #8205
     Hanns Nolan
    Participant

    Hi Leonard, I am not aware of this, but with https://backstage.forgerock.com/#!/docs/openidm/4/integrators-guide#function-action you can call a workflow.

    regards
    Hanns

    #8212
     leonard.alba
    Participant

    hi Hanns,

    Thank you. My current problem is where to place this call to workflow. Does ForgeRock got any documentation on how does the OpenIDM Backbone js files works?

    I know that the SelfRegistrationView.js is being called, and I have gone as deep as AbstractProcessDelegate.js but beyond that I am not able to find out where it calls the .serviceCall() function. Somehow, calling ServiceInvoker on between SelfRegistrationView.js and AbstractProcessDelegate.js is causing a javascript error although it is not logging it anywhere. My registration process just freeze whenever I do this.

    regards,
    Leonard

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.

©2021 ForgeRock - we provide an identity and access platform to secure every online relationship for the enterprise market, educational sector and even entire countries. Click to view our privacy policy and terms of use.

Log in with your credentials

Forgot your details?