Issue in implementing Dynamic participant chooser process Step

I am facing issue in implementing Participant chooser process Step.
I want to create dynamic Participant chooser process Step, I have implemented 'ParticipantStepChooser' class and overwrote 'getParticipant' method. But this process did not appear in Dynamic participant chooser dropdown in CQ5.6 environment.
I deployed same code in CQ5.5 and process appeared in Dynamic participant chooser dropdown.
This is the sample code which I have used:
@Component(immediate = true, metatype = true, label = "DMP Config Service123")
@Service
@Properties({
        @Property(name = Constants.SERVICE_DESCRIPTION, value = "A sample implementation of a dynamic participant chooser.", propertyPrivate=true),
        @Property(name = Constants.SERVICE_VENDOR, value = "Adobe", propertyPrivate=true),
        @Property(name = ParticipantStepChooser.SERVICE_PROPERTY_LABEL, value = "******** Hello ********", propertyPrivate=true),
        @Property(name = "immediate" , value = "true", propertyPrivate=true)
public class MyDynamicParticipant implements ParticipantStepChooser {
    private static final String TYPE_JCR_PATH = "JCR_PATH";
    @Activate
void activate(ComponentContext context) {
  LoggerUtil.infoLog(this.getClass(), " ");
    public String getParticipant(WorkItem workItem, WorkflowSession workflowSession, MetaDataMap args) throws WorkflowException {
  LoggerUtil.infoLog(this.getClass(), "inside getParticipant method{} ");
        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 "admin";
        return "administrators";

Make sure to change your imports in 5.6 to use granite api. Please change from [1] to [2].
[1]
import com.day.cq.workflow.WorkflowException;
import com.day.cq.workflow.WorkflowSession;
import com.day.cq.workflow.exec.ParticipantStepChooser;
import com.day.cq.workflow.exec.WorkItem;
import com.day.cq.workflow.exec.WorkflowData;
import com.day.cq.workflow.metadata.MetaDataMap;
[2]
import com.adobe.granite.workflow.WorkflowException;
import com.adobe.granite.workflow.WorkflowSession;
import com.adobe.granite.workflow.exec.ParticipantStepChooser;
import com.adobe.granite.workflow.exec.WorkItem;
import com.adobe.granite.workflow.metadata.MetaDataMap;

Similar Messages

  • Newbie: where is the implementation of connections between process steps

    Hi !
    I'm just starting with Solution Manager and trying to understand this concept. Once you graphically connect some process steps in the business blueprint to represent the processing sequence, then how do you really implement that logic to be executed? is it mapped somehow automatically to a SAP workflow?
    Thanks.
    Regards,
    Matias.

    Hi. Thanks for your comment. What I meant is for example, if you go to https://implementationcontent.sap.com/bpr , then to Business Process Repository -> Organizational Areas -> Sales -> Business Processes ->Account identification -> SAP CRM 4.0 and choose the Graphic tab on the right, you see a business process model of the scenario. In that graphic, for example, "Answer contact" is linked or connected to "Identify account and contact person"..what does this connection mean in the realization or implementation phase? would there be some kind of workflow configuration ?will be the second transaction or step automatically called after the execution of the first one?
    Thanks!
    Regards,
    Matias.

  • SOlman_setup issue at implement SAP Note Step

    Hi Friends,
    While i am performing the solman_setup (system preparation) facing once issue at Implement SAP Note step.
    In this step while i am performing  the post processing step (3rd step) giving the red signal The system only partially implemented the manual activities for note 1856234.
    And i followed the note 1856234 as per the note i ran the report AI_CRM_ANALYZE_IBASE_SORTF and i got the error messages.
    The Ibase component 000000000000003598 has deviceid: SID 00XXXXXXX
    Sort string is needed!
    Comp. with same device id:
    Replace Sort string with (from LMDB):
    The Ibase component 000000000000003272 has deviceid: SID 00XXXXXXX Etc.
    Sort string is needed!
    Comp. with same device id:
    Replace Sort string with (from LMDB):
    And as per the note
    when i am executing IB_GEN i am getting below errors.
    Object not found - will be created.
    No changes made; Saving not allowed
    Failed to save object %   1 (Object family 7001).
    Kindly suggest on this.
    Thank you,
    Chowdary.

    Please refer to SAP Notes 1694004 - Dealing with duplicate technical system names (SIDs) and 1747926 - Dealing with duplicate technical system names (old SLD)

  • Multiple user in a parallel dynamic process step?

    Hi,
    anyone an idea how to address an process step in an parallel dynamic block simultaneously to multiple users?
    I already tried the ‘Assign Users to Process Role’-Callable Object. Unfortunately each added user to one step in the parallel dynamic block was added to the same step in each parallel thread.
    Any suggestions how to solve this problem in a other way?
    Thanks and best regards
    Robert

    WKAriyoshi wrote:
    Is there a way to execute the Prompt User for Input in parallel process while executing the read data part? Is there another way to request a password from the user?
    Executing these tasks (reading from instrument AND prompting user for inputs) in parallel loops can solve your problem instantly, if you can share the code, one can pin point what & where exactly changes are required or parallel loop can be included (along with any other changes which might be required).
    I am not allergic to Kudos, in fact I love Kudos.
     Make your LabVIEW experience more CONVENIENT.

  • How to use a servlet in a Workflow process step.

    Hi
    I need am upgrading existing code from cq 5.4 to CQ 5.5.
    The exsiting code uses a servlet with an injected @MailService reference to send emails. It is currently used as a process step service.
    However, with CQ 5.5 I see that I need to implement the WorkFlowProcess interface, to see this class listed as in the Process step drop down list.
    The issue I have is if I keep the class as a Servlet extension , it does not show up in the drop down list of the process step.
    Is there a way to update the code to list this servlet as a process step?
    Or is there a way to inject the MailService reference into a class which only implements the "WorkflowProcess" interface and is not a servlet ?
    advice appreciated.
    thanks
    Ven

    The implementation of WorkflowProcess is to be deployed as an OSGi service, so you can @Reference the MailService in that class.
    http://dev.day.com/docs/en/cq/current/workflows/wf-extending.html#Defining a Process Step with a Java Class
    scott

  • Asset metatadata information in a java process step

    We need to write a java process in a process step of a workflow. We need to do certain actions based on the asset being referred in the workflow.
    I am not able to fetch the metadata of the asset(example image). Please share the code for fetching the
    metadata for an asset.
    Thanks,
    Sachin

    Hi Sham,
    I have tried using ResourceResolverFactory also, but it has not resolved the issue.
    When ever I am trying to take the ResourceResolver object from ResourceResolverFactory, I am getting NullPointerException.
    Below is the code I am using, Please suggest if I am making any mistake.
    @Component(metatype = true, immediate = true)
    @Service
    @Properties({
    @Property(name = Constants.SERVICE_DESCRIPTION, value = "ForTestingProcesses"),
    @Property(name = Constants.SERVICE_VENDOR, value = "abc"),
    @Property(name = "process.label", value = "TestProcess")})
    public class TestCode  implements WorkflowProcess
              private static final Logger log = LoggerFactory.getLogger(TestCreateAssetWorkflow.class);
              @Reference(policy = ReferencePolicy.STATIC)
               private ResourceResolverFactory ResolverFactory;
              ResourceResolver resourceResolver = null;
              public void execute(WorkItem item, WorkflowSession arg1, MetaDataMap arg2)
                                  throws WorkflowException {
              try{
                        String path=item.getWorkflowData().getPayload().toString();
                        log.info("TestCode Path::"+path);
                        resourceResolver = ResolverFactory.getAdministrativeResourceResolver(arg2);
                        log.info("Path2::"+path);
                        Resource res=resourceResolver.getResource(path);
                        log.info("Path3::"+path);
                        Asset damAsset = DamUtil.resolveToAsset(res);
                        log.info("damasset::"+damAsset);
      }catch(Exception e){
                                  log.info("Stack Trace::"+e);
    if I include the line  @Reference(policy = ReferencePolicy.STATIC), It is giving error that the process is not found. If I am excluding the mentioned line, I am getting NullPointer exception.
    Please suggest.
    Thanks,
    Sachin

  • How to provide transition comment while completing a process step

    Out of the box, we can indicate transition comment for participant steps when completing a inbox item, which is then displayed as a subheading of a inbox item for next step - which is really helpful.
    but, how can i provide a transition comment, when completing a process step.
    I see the complete method, but dont see where i can provide transition comment.
    complete(WorkItem item, Route route)
    Environment CQ 5.5

    Its workitem metadata which holds the comments info. Can you try this if it works
    workitem.getWorkflowData().getMetaData(); which will return the dictionary object and set "comment" in this object.

  • 2 Logical Components for 1 Business Process Step

    Hello All,
    I'm looking for a way to assign in SolMan --> transaction Solar01 - Tab Structure - Business Process Step, 2 logical components for 1 business step. When creating the business step I have to assign 1 specific logical component to this step. Once I have done this I can only select  the chosen logical component ffor SAP Transactions, configuration object etc.. As my business step is running on 2 different systems I need to find a way to link transactions etc. in the step to the different systems. Is there any way to change this for the Level 3 elements, like it is for level 2 (business processes) where I can choose in the different tabs between all the logical components?
    Thanks in advance
    Ramó

    I've seen people use some absolute craziness to get more than three levels. The most extreme being using multiple projects at the highest level (i.e. a project for PTP Accounts Payable). Don't go there.
    I personally like to have 1 transaction per process step. Don't use the transaction tab as another process level, use it to better describe the process step (like all the other tabs are uses). It results in a better understanding of the system as you go forward. To do that I make teams break up things they think are one step (this can take some arm twisting, so hit the gym and maybe take a few judo classes).
    This allows you to use SolMan in more powerful ways. For instance, if you attach development objects to a step with 5 transactions, you cannot tell which transaction is modified by the development object. However, one transaction per node provides you this link. There are other examples, but basically the "where used" button becomes very useful when you have 1 transaction per node.
    Maybe you could provide a specific example of your process and we can think of a better way to collapse it.
    Such as:
    - PTP Non-Merchandise Purchasing
    -- Expense Purchasing
    --- Create Purchase Requisition
    --- Create Purchase Order (Assign Vendor & Price)
    --- Send to Vendor
    --- Post Goods Receipt
    --- Perform LIV
    --- Process Payment
    Some companies have 6 level processes already defined in models and putting it into SolMan can be a pain for sure. Your naming convention is usually the best route.
    regards,
    Jason
    The system role and template work around doesn't apply to your situation.

  • Self Check and Your self check printing process steps and program in SAP

    Hi  SAP-FICO's
    My client required  in SAP-ECC-6.0
    1.Self Check printing for cash withdrawel 
    2. your self check for one Vendor or group of vendors  for getting DD from the Bank
    3.How to issue  the  same check for more than one vendor   and get debited through F-53 bank payment
    Can any one give idea and process steps  to  resolve the above three issues .
    Thanks in advance.
    Thanks &regards
    maalik

    Hi
    Can any one can provide the process steps.

  • IView Appraisal Document not showing customer process step names.

    the iView "Appraisal Document", after pressing the pushbutton to move to the next process step, shows the text
    "status changed to 'In Review'" in the info area of the iView.
    we have changed the names of the standard process steps using IMG "Define Tabs and Process Configuration for Template"
    for instance we renamed "In Review" to "Progress Tracking".
    the issue is the iView "Appraisal Document" still shows "status changed to 'In Review'" instead of showing "status changed to 'Progress Tacking'".
    note: the names of the steps in the roadmap (on top of the iView) show correctly, it is just that the state transitions "Status changed to..." the names of steps show standard instead of customer steps.
    any idea why?
    Thanks,
    Tiberiu

    Hi,
    My first advice would be to talk to customer out of this.
    As a client using SAP you're using standard software which has predefined 'names' for certain things. The names of appraisal - statuses is one of them.
    (I've never seen a client wanting to adopt the names of menu texts in Microsoft Office and personally I don't seen the difference. Of course, it will take some time for the client to get used to the new names but in a year or two, everybody is used to those terms).
    If you don't succeed, there's no need to change programs. You'll need to change the values of the standard SAP - domain mentioed before.
    Wilfred.

  • Own workflow process step (java) not listed in the generic Process step component

    Based on the description Extending Workflow Funtionality I have used this sample to create a bundle with the CRXDE Development Environment. Almost just copying the code from the page (had to make some adjustments to correct program errors in this sample) an then build bundle. According to Note 2 this program should be seen in the list supplied by Process step Component when editing a workflow. But it is not there.
    @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 = "My Sample Workflow Process")
        static final String LABEL="process.label";
    What do I need to do else?
    Thanks,
    Ulrich

    Ulrich,
    CRXDE does not support the Java annotations which are listed in the documentations. When you want to leverage CRXDE (which is for development ... discouraged), you need to migrate to JavaDoc style annotations.
    For documentation how you can setup a development workflow based on a Java IDE and maven please see [0].
    kind regards,
    Jörg
    [0] http://dev.day.com/docs/en/cq/aem-how-tos/development/how-to-build-aem-projects-using-apac he-maven.html

  • Implement a normal insert process in an interactive report

    Hello,
    I want to implement a normal insert process for an interactive report. For which I have created an pl/sql anonymous block with the process. This process will be fired when I click the create button of the New record insert region.
    insert into table_name(YR_MO,STATUS,UPDATED_DT,ID) values
    (to_char(sysdate,'YYYYMM'),:P1_STATUS,sysdate,:P1_ID);
    YR_MO is my primary key column in tha table.
    For inserting purposes I have created a separate (New record insert) region, with the items P1_STATUS and P1_ID amd a create button.
    Within the interactive report, i have a button Create_New when I click this button the New record insert region should open up and in that region, i have the items P1_STATUS,P1_ID.
    My problem is when I click the Create_New button within the interactive report, the records are getting inserted. I dnon't understand what might be the problem, because the insert process should be fired when i click the create button within the New record insert region but it is firing when I click the create_new button.
    Can anyone help me out with this issue.
    Thanks,
    Orton.

    Does the insert process fire on a specific request only? And do the two buttons have different request values (names)?

  • ABC Cycle Counting Process Steps

    We currently want to switch our Cycle Counting by Bin location to ABC Cycle Counting. We want the system automatically generate a list of materials to count daily based on there ABC indicator.
    Our Current Process Steps are as follows:
    Step 1:  LX 26 - Select Items for cycle count
    Step 2:  LI04 – Print the Count sheets
    Step 3:  LI11N – Enter the results
    Step 4:  LX17 – View variance
    Step 5:  LI14 – Create recounts
    Step 6:  LI04 – Print the recount sheets
    Step 7:  LI11N – Enter the results
    Step 8:  LX17 – View variance
    Step 9:  LI20 – Accept Counts & Clear Differences WM
    Step 10:  ZLI21 – Accept Counts & Clear Differences IM
    But when we switch to ABC Cycle counting we can't do the LX26 because that is when you select the bins you want to count. We need the process steps if we use the system to generate the kick off. Any ideas?
    Linda

    1. It is a CO problem - I think your error message is KI235. However you may face this problem if settings are ok but you do not do things properly in IM/WM bookings. Please check these links:
    Re: OKB9
    Account 5248654 requires an assignment to a CO object---Message no. KI235
    Please describe step-by-step (with trx codes) what you did and in which step you get the error message.
    2.
    WM bookings will "never" consume you components (or maybe because a bug...). If you want to consume the components you have to post GI with reference to your PrdOrd (CO11N, CO15, CO27, MIGO, MB1A).
    If you did a booking with mvt 261 in MB1A by mistake, do the reverse booking by mvt 262. That's all.
    If you cannot solve your issue please clarify your problem, step-by-step...
    Regards,
    Csaba

  • Hi, We are running domino application in windows server 2008r2 machine, we are facing High RAM utilization issue, but there is no such process are running.

    Hi, We are running domino application in windows server 2008r2 standard virtual machine, we are facing High RAM utilization issue, but there is no such process are running. Machine is running in ESXI host, most of the time it shows high RAM utilization.
    We upgraded the ram from 6 to 8 GB, but still facing the issue,
    Where as other  VMs working fine.
    Need a help to find out the issue.

    Hi Sathish sampath,
    You can use Resource monitor and Task Manager->Performance to monitor the RAM memory utilization, I also recommend you to download the
    RAMMap to get more detailed memory information.
    For more detailed information to troubleshoot this issue, please also refer to this thread:
    memory performance problem. Please help.        
    You can also choose to post your monitor picture to help us to troubleshoot.
    I holp this helps.                       

  • Issue in populating dynamic values in smartform

    Hi Experts,
    I am facing some serious alignment issue while populating dynamic values in smartform.
    Through table, I am populating  dynamic values in smart form. If my internal table contains 20 records , first 10 records are populating in first page and remaining records are populating in next page properly. But here issue is whenever that first 10 records are populated in first page system automatically leaves empty row at the end of page. Ideally it should not happen. please tell me how to solve this issue.
    thanks
    Karthik

    Hi,
    I was wondering how are the bold lines output, if you only have one line type... is the Table node executed multiple times under the loop node, where the bold text is implemented as separate text node..? It should IMO actually not affect the output of the table in any negative way if it's done so - just curious
    With the "protect" I meant this baby:
    You could also try to download and attach only the (upper) node involved in the output of table instead of whole form, if there is something in the form that should not be seen publicly...
    cheers
    Janis

Maybe you are looking for

  • How do I stop my macbook Air overheating from Yosemite 10.10.1 download?

    As soon as I downloaded the latest Yosemite OX 10.10.1 download my macbook air started to over heat. How can I stop this from happening as it is a loud noise and obviously not good for my computer? Additional info if necessary: Hardware Overview:   M

  • How to get a specific tag value from SAX parser

    I am using the SAX method to parse my xml file. My Question is how to get the returning characters parsed after calling? esp the value of <body> tag? Here is my xml file, and i want to get the parsed <body> value after call sax parser. <?xml version=

  • Download link in Apex4

    Hi All, I have migrated Apex 3.2 to Apex 4. I had interactive report with download link. It was working fine but in Apex 4 ,this is not working. Could anybody please help me with this? Thanx Omy

  • Change from NTSC to PAL

    I've made a video DVD (wide screen) with Premiere and Encore. I want to make a version for Europe, and therefore change to PAL (and therefore change the pixel dimensions). For some reason I can't find how to do this NTSC dropdown is greyed out, and I

  • We are looking for Flash-Games for our A-level exam

    Hello Our Project-Team creates a Game-Hompage for our A-level exam. We are looking for Flash-Games and Games in other Languages (for example: Java or VBnet), wich we will publish on our Webpage. The quality, category etc. doesn't matter. Furthermore