Hi,

The execute method of the custom plugin is having Map as an argument, what will the Map object be holding during the time of exection of the plugin? and how we need to pass an argument(integer or String) to the plugin when we are mapping a custom plugin to the workflow activity?

Thanks in advance.

Vignesh

  • No labels

3 Comments

  1. Hi there,

    There are few objects are made available for plugin. Examples are like pluginManager, directoryManager, and wfAssignment. With all these objects, you can gain access to form's data, process's details and attributes and so on.

    Maybe the best way to start developing your own plugin is to look at how other plugins are developed first. See Developing Plugins

    Good luck.

    1. Hi Hugo,

      I just tried with WorkflowAssignment class for accessing the process details with a sample plugin, but Im getting java.lang.NoClassDefFoundError: org/joget/workflow/model/WorkflowAssignment in the line where the object is created for the workflow assignment class while the plugin is invoked during the workflow execution, So I tried to include the class in the POM file using the import package tag, in that case the upload of JAR is itself not happening and the below exception is thrown,

      ERROR 09 May 2011 17:56:59 org.joget.plugin.base.PluginManager  - Failed bundle start for com.company.plugin.test.TestPlugin [10]: org.osgi.framework.BundleException: Unresolved constraint in bundle 10: package; (package=org.joget.workflow.model.WorkflowAssignment)
      org.osgi.framework.BundleException: Unresolved constraint in bundle 10: package; (package=org.joget.workflow.model.WorkflowAssignment)

      Kindly let me know whether Im missing something here. I have attached the sample code MyPlugin.java and the screenshots invokeError.JPG, uploadError.JPG 

      Please help in this regard.

      Thanks,

      Vignesh

      1. I was trying different means to overcome the above issue, but nothing was helpful, Can someone help in this regards.

        Thanks,

        Vignesh