• Passing Parameters to Automation Event Actions.

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #43845  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?
 #43859  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

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.