/ Development  

A simple how-to story; configure a signed user action

Hi there “Process Automation” fans,

Welcome to a new installment of “Process Automation” tips.

Have you ever wondered how the sign-off for an action works!? #WTF sign-off? Yes…that’s when you need to provide your credentials again to actively register that you hit that action button. Is that possible in OPA!? Well, yes that’s possible and in this post we’ll explain how to make this feature come alive…


Let’s get right into it…

Note upfront; make sure your OPA platform authenticates over OTDS. Read more about this setup here.

Now, boot up your OPA machine and dive into your favorite spot in the designer. Create yourself a workspace with a relevant project and create a first basic folder structure to keep things together that belong together.

Next step is to create a simple ‘Case’ entity with just one property case_name. Add the ‘History’ BB for tracking (incl. a new history log config with name hl_case) and add a simple custom action type of ‘Rule’ with name a_hit_me like this:

signed_001

For you to copy: Signed by: {User.Properties.IdentityDisplayName}

Publish and try it out…Create a new ‘Case’ instance and hit the action button. It will endlessly rotate your browser with a failed popup (if not blocked) as it wants to start something that’s not configured yet!

signed_002

…

Time to make that missing configuration…Move yourself into OTDS!

In OTDS create a new OAuth client with this input:

  • Client ID: opa_oauth_client
  • Add a redirect URL (without any /home/...): http://192.168.56.102:8080

signed_003

Now go back into OPA and add an OAuth authenticator in the ‘Security Administration’ artifact for your organization:

  • Make sure to checkmark the option ‘Use as default for signing’
  • Use the same client ID: opa_oauth_client

signed_004

With these changes in place, go into runtime and hit the action button again:

signed_005

NICEEEEE…Fill in your current credentials and NOT from a different account which will result in an error:

signed_006

Also have a double-check in the history log with the registered entries for your action:

signed_007

Great, that’s a “job’s done”…

#RTFM for more specific details; see admin guide section ‘Configuring OTDS for signed user action’


Easily “DONE” this time; I don’t see it too often that just following the documentation brings you to a successful outcome without any struggles. Well, good for us and also good for us to now know that such sign-off action is possible to configure. Let’s wrap it up for the post; have a great weekend, and we’ll talk about another topic of “Process Automation Tips”, next week. Cheers!

Don’t forget to subscribe to get updates on the activities happening on this site. Have you noticed the quiz where you can find out if you are also “The Process Automation guy”?