Expand my Community achievements bar.

Custom workflow step

Avatar

Former Community Member

Hi,

I have created a custom workflow step that process the payload and perform some activity. The workflow step is working fine if it is installed as a sperate bundle.

We have 2 other custom made jars as well. Those are being packaged along with other code that is accessed in crx.

If we create a multimodule maven project, it generates 2 modules: Bundle and Content. Using this project we have added few java classes in a different module. It is being packaged in a single zip (found under /content/target) (it contains the jars as /apps/<my project name>/install) that is uploaded in the package manager and can be seen in crx (content part) and in web console (bundle part).Similarly anodr module is added. This 3rd module is a custom workflow script. It is working fine if the bundle is uploaded seperately in web console. but it is not working if it is uploaded as part of the zip. The POM of individual modules have been modified as per the requirement and the packaging is fine as well (we maven clean and maven install the parent pom and it creates the target of 3 different modules in the "content" module and package the jars in install folder).we upload the package and the 3 jars(or OSGI bundles) are visible in web console (and status is active) but this custom workflow script is not available if we try to add it in a workflow, using the 'process step' (In the "process" tab of "process step" this script is not visible).

 

Any help is appreciated...

2 Replies

Avatar

Level 10

What Maven command are you using to create a multimodule maven project? Are you following Adobe documentation?

Avatar

Former Community Member

yes...adobe documentation was followed. A project was created using the command provided in the documentation. After creating the project a module was added and that is working fine. But when we add a 3rd module similarly it is not visible in the workflow process step. There is no error in logs or in the felix console. The packaging is fine adding the repective changes in <modules> tag in parent pom and providing parent definition in the child module. But something seems to be missing. 

in parent pom:

<modules>
        <module>assetActivation</module> <!-- This is the module that is not working fine-->
        <module>bundle</module>
        <module>bundle_profile</module>
        <module>content</module>

    </modules>

 

in child module:

    added parent description as below:
    <parent>
        <groupId>custom.groupID</groupId>
        <artifactId>DComJsonUtil</artifactId>
        <version>1.0-SNAPSHOT</version>
    </parent>

 

is there anything that we are missing here apart from making these changes ..?? 

The assetActivation custom workflow process is working fine if we upload it separately..

 

Thanks