Issue with CQ5 Workflow -


i've developed workflow model looks below.

flow start ->test process-> custom participant ->end i've written 2 different osgi bundle 2 different custom process step , custom dynamic participant step.

first osgi implemetation - created bundle under /apps/mywebsite/wfprocess/ , path of java file /apps/mywebsite/wfprocess/src/main/java/com/test/workflow/myworkflowprocess.java

      @component      @service       public class myworkflowprocess implements workflowprocess {       @property(value = "an example workflow process implementation.")     static final string description = constants.service_description;      @property(value = "adobe")      static final string vendor = constants.service_vendor;     @property(value = "custom step process ")     static final string label="process.label";     private static logger log = loggerfactory.getlogger(myworkflowprocess.class);     private static final string type_jcr_path = "jcr_path";      public void execute(workitem item, workflowsession session, metadatamap args)       throws workflowexception {         string argument = args.get("process_args", "default value");     /*      need here call second dynamic participant step?      /*    }    } 

now second osgi, custom participant- created bundle under /apps/mywebsite/custperticipantchooser/ , path of java file

/apps/mywebsite/custperticipantchooser/src/main/java/com/test/cust/actor/mydynamicparticipant.java

    @component     @service     @properties({     @property(name = constants.service_description,                value = "a sample implementation of      dynamic participant chooser."),     @property(name = constants.service_vendor, value = "adobe"),     @property(name = participantstepchooser.service_property_label,                value = "sample participant chooser")})         public class mydynamicparticipant implements participantstepchooser {     private static final string type_jcr_path = "jcr_path";     public string getparticipant(workitem workitem, workflowsession workflowsession,       metadatamap args) throws workflowexception {     workflowdata workflowdata = workitem.getworkflowdata();      if (workflowdata.getpayloadtype().equals(type_jcr_path)) {         string path = workflowdata.getpayload().tostring();         string pathfromargument = args.get("process_args", string.class);         if (pathfromargument != null && path.startswith(pathfromargument)) {             return "sam";         }      }     return "marketingrp";     }         } 

now did install 2 bundles , both in active status.

issue when start workflow first custom process step getting executed after finishes second custom dynamic participant flow code not getting executed. when removed first custom step process(test process) code getting executed custom dynamic participant flow.

could please let me know if i'm missing here? thank help!

i'm working on 5.4 version.

it seems custom process doesn't advance participant step. please check have handler advance checkbox selected in process step. remember save workflow after updating custom process component.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -