Page 1 of 1

Passing Parameters to Automation Event Actions.

PostPosted:Wed May 17, 2017 9:30 am
by PSHREYASHOLLA
Hi,

I am using pre and post Document create actions and have configured my Java file to get called which "implements Action" and have overridden executePost(HashMap<String, Object> arg0, Object... arg1) method.

So how can I pass my metaData property arguments to this method?

Re: Passing Parameters to Automation Event Actions.

PostPosted:Thu May 18, 2017 7:18 am
by jllort
Take a look at AutomationUtils.java the idea to pass parameters between core and automation classes is to set into the HashMap<String, Object> arg0.
Take also a look at some Automation class, take a look at classes into com.openkm.automation or in our documentation sample https://docs.openkm.com/kcenter/view/ok ... ml#Example