PARTNERS - Please join us for our upcoming webinar:
Leveraging Intelligent Recommendations for Operational Transformation.
AMS Partners click HERE | EMEA/APJ Partners click HERE

Workflow - action Event

IAM_99
Regular Contributor II
Regular Contributor II

Hi Team,

We are exploring action even in workflow -  Can we get ars -request metadata  like endpointname , Entitlement requested, username,accountname details inside action event ?

What is the method input parameters ? what are the use cases for this component ?

 

Thanks,

suresh

8 REPLIES 8

rushikeshvartak
All-Star
All-Star

You need to create custom jar and deploy. You can pass arguments to java code as show below

Method Name : getAction(endpoint,ARSREQUEST.id)

 

 

Action Event

Use this component to execute a java class and method after fulfilling certain conditions.
For example, to call the class notifyApp.class with method notify, specify notifyApp in Enter Java Class Name, and in the Method Name specify notify.

Ensure that the class and the method you want to call are available in the JAR file. Copy the JAR file to:

.

Note

Support for returning of data from Java methods into workflows is not available.

This block consists of the following parameters:

  • Name: Specify the name of the action.

  • Type Of Action: Select the action type from the list as 'Java Class'.

  • Enter Java Class Name: Specify the Java class name that you want to call from the JAR file. For example, notifyApp.

  • Method Name: Specify the method name you want to call in the specified class name. For example, notify.

This block consists of the After Execute connection points.


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

IAM_99
Regular Contributor II
Regular Contributor II

Hi @rushikeshvartak 

This is custom class we are not extending any class right ?notifyApp.java  - Java class     notify( )  - method 

where this method come from   getAction(endpoint,ARSREQUEST.id)  ?

 

Do you mind share any sample Java class for Action Event if possible?

 

Thanks,

suresh

Yes is custom class 

For below example 

class : com.AECaller;

method : justCall() wihout args

method Test(a) with arguments

 

rushikeshvartak_2-1691119946174.png

 

 


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

IAM_99
Regular Contributor II
Regular Contributor II

IAM_99_0-1691154871497.png

we need endpoint,ARSREQUEST.id, accouname,username (request metadata) details in the Java Code for further logic, how can we get it ? otherwords can we print endpoint,ARSREQUEST.id inside java code ?

Are you saying we can call only static logic here ?

If you send requestkey inside code and csll get request details api , you should get required details


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

IAM_99
Regular Contributor II
Regular Contributor II

How to get requjestkey  ?

As mentioned earlier you can pass as argument

rushikeshvartak_0-1691368009556.png

 


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

IAM_99
Regular Contributor II
Regular Contributor II

Ohh okay , you mean here below ?

IAM_99_0-1691408649829.png