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

Similar Messages

  • Use of Execution Type in Workflow process step.

    Hi Kiran,
    The Execution Type is relevant for the process step of the workflow.
    MDM workflow steps can be assigned either to one or more users or to one or more roles, as follows:
    u2022 Users. User-based assignments allow you to explicitly specify which user or users should be responsible for performing the step.
    u2022 Roles. Role-based assignments allow you to specify roles rather than users, with the actual users determined by MDM at runtime.
    The Execution Type defines the relation between these assigned users/ roles if there are more than one:
    1. All Concurrent- All assignees must perform the step. Each assignee can do so at the same time.
    2. All Sequential Random- All assignees must perform the step. Each assignee can do so one at a time in any order.
    3. All Sequential Ordered-  All assignees must perform the step. Each assignee can do so one at a time in the order listed in the step.
    1. Any Single- Any single assignee can perform the step. The step can be pushed to or pulled by any assignee.
    You can also find this documented in the Data Manager Reference Guide under MDM Workflows-> Execution Type (page 292)
    Regards,
    Hedda Cohen.

    _Thanks Hedda_

  • How to use rules and roles in workflow?

    Hi experts,
    I am a beginner in  workflow. Could  any one tell me how to use rules and roles in workflow ?
    Can u pls tell me the steps to follow?
    and more over what are all the <b>important things</b> we have to learn in workflow module ??
    I shall be thankful to u.
    Thanks
    uma

    Hi
    Workflow automates the steps and activities in a business process according to predefined procedures and rules.
    Workflow presents information and documents to the appropriate knowledge worker or agent (another entity such as a program) to make a decision or perform an activity.
    Workflow tracks each and every step in the process flow and maintains an ongoing status.
    Workflow also collects and reports all of the metrics associated with the execution and completion of the process.
    Check the below links u will get lot of info..
    http://www.sap-press.com/product.cfm?account=&product=H950
    Workflow
    http://www.sap-img.com/workflow/sap-workflow.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
    For examples on WorkFlow...check the below link..
    http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
    http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
    http://www.workflowing.com/id18.htm
    http://www.e-workflow.org/
    http://web.mit.edu/sapr3/dev/newdevstand.html
    Go through the following links on FORK :
    http://help.sap.com/saphelp_nw04/helpdata/en/24/e2283f2bbad036e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/8d/25f1e7454311d189430000e829fbbd/frameset.htm
    http://help.sap.com/saphelp_46c/helpdata/en/c5/e4a930453d11d189430000e829fbbd/content.htm
    http://www.insightcp.com/res_23.htm
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMSTART/BCBMTWFMSTART.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMDEMO/BCBMTWFMDEMO.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMPM/BCBMTWFMPM.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
    For more reference on workflow: http://****************/Tutorials/Workflow/Workflow.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/04/9277a346f311d189470000e829fbbd/frameset.htm
    Check these links.
    http://www.sapgenie.com/workflow/index.htm
    /people/ginger.gatling/blog/2005/12/01/link-workflow-business-objects-to-your-collaboration-tasks
    http://help.sap.com/saphelp_nw04/helpdata/en/92/bc26a6ec2b11d2b4b5006094b9ea0d/content.htm
    http://help.sap.com/saphelp_bw33/helpdata/en/92/bc26a6ec2b11d2b4b5006094b9ea0d/content.htm
    http://help.sap.com/saphelp_bw31/helpdata/en/8d/25f94b454311d189430000e829fbbd/content.htm
    http://www.sap-press.com/product.cfm?account=&product=H950
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
    http://www.workflowing.com/id18.htm
    http://www.e-workflow.org/
    Workflow
    http://www.sap-img.com/workflow/sap-workflow.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
    For examples on WorkFlow...check the below link..
    http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
    http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
    http://www.workflowing.com/id18.htm
    http://www.e-workflow.org/
    http://web.mit.edu/sapr3/dev/newdevstand.html
    http://www.sap-img.com/workflow/sap-workflow.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
    For examples on WorkFlow...check the below link..
    http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
    http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
    http://www.workflowing.com/id18.htm
    http://www.e-workflow.org/
    http://web.mit.edu/sapr3/dev/newdevstand.html
    Workflow tutorials with step-by-step and with screenshots are available at http://www.****************/Tutorials/Workflow/Workflow.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/42/c14a9b55103116e10000000a1553f7/frameset.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/c5/e4a930453d11d189430000e829fbbd/frameset.htm
    http://www.sapgenie.com/workflow/
    http://www.sap-img.com/workflow/sap-workflow.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
    http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
    http://www.sap-basis-abap.com/wf/sap-business-workflow.htm
    https://forums.sdn.sap.com/click.jspa?searchID=791580&messageID=2857887
    https://forums.sdn.sap.com/click.jspa?searchID=791580&messageID=2855919
    https://forums.sdn.sap.com/click.jspa?searchID=791580&messageID=2735228
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMSTART/BCBMTWFMSTART.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMDEMO/BCBMTWFMDEMO.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMPM/BCBMTWFMPM.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
    Debug a workflow.
    This has a step by step procedure :
    http://fuller.mit.edu/workflow/debugging.pdf
    www.erpgenie.com/sap/workflow/debugging.htm
    http://www.erpgenie.com/workflow/debugging.htm?2b5de440
    Workflow tutorials with step-by-step and with screenshots are available at
    http://www.****************/Tutorials/Workflow/Workflow.htm
    http://www.sapgenie.com/workflow/
    http://www.sap-img.com/workflow/sap-workflow.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
    http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
    http://www.workflowing.com/id18.htm
    http://www.e-workflow.org/
    http://web.mit.edu/sapr3/dev/newdevstand.html
    http://www.sap-basis-abap.com/wf/sap-business-workflow.htm
    https://forums.sdn.sap.com/click.jspa?searchID=791580&messageID=2857887
    https://forums.sdn.sap.com/click.jspa?searchID=791580&messageID=2855919
    https://forums.sdn.sap.com/click.jspa?searchID=791580&messageID=2735228
    http://www.sapbrain.com/TUTORIALS/TECHNICAL/WORKFLOW_tutorial.html
    Regarding Work Flow   
    work flow scenarios.
    1. applying for a leave.
    2. approval process.
    3. material creation process.
    4. mainly work flow is for notification purpose.
    chk this links
    http://help.sap.com/saphelp_erp2005/helpdata/en/fb/135962457311d189440000e829fbbd/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/c5/e4a930453d11d189430000e829fbbd/frameset.htm
    Workflow
    http://www.sap-img.com/workflow/sap-workflow.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
    For examples on WorkFlow...check the below link..
    http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
    http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
    http://www.workflowing.com/id18.htm
    http://www.e-workflow.org/
    http://web.mit.edu/sapr3/dev/newdevstand.html
    http://www.erpgenie.com/workflow/index.htm
    http://www.sap-basis-abap.com/wf/sap-business-workflow.htm
    http://www.insightcp.com/res_23.htm
    A good tutorial
    http://www.thespot4sap.com/articles/Invoice_Verification_Automation_Using_SAP_Workflow.asp
    http://www.sap-basis-abap.com/wf/sap-business-workflow.htm
    /people/alan.rickayzen/blog
    /people/jocelyn.dart/blog/2006/06/19/why-use-abap-oo-with-workflow
    a good book
    http://www.sap-press.com/product.cfm?account=&product=H950
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
    http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
    http://www.sap-press.com/downloads/h950_preview.pdf
    Check the following PDF
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMSTART/BCBMTWFMSTART.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMDEMO/BCBMTWFMDEMO.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMPM/BCBMTWFMPM.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
    also seach the workflow forum: SAP Business Workflow
    Regards
    Anji

  • How to use resource servlet ?

    Hi all,
    Does any body know know how to use resource servlet to share resources (xsd, wsdl etc) in OSB ? Kindly provid eme witht the steps
    Thank you.

    Hi Eric,
    We can share the resource in the following way, but unfortunately OEPE doesnt accept http urls in schemaLocation arrtibute
    How can I get the WSDL/Policy/MFL/Schema/Proxy via HTTP?
    You can retrieve many of the resource types directly from the OSB server by using HTTP instead
    of needing to use the service bus console. The general pattern for the URL is as follows:
    http://[hostname]:[port]/sbresource?[Resource Type]/[Project Name]/[Resource Name]
    CHAPTER 18 ■ HOW DO I . . . ? 477
    The [Resource Type] section of the URL may be any one of the following values:
    • BIZ
    • MFL
    • POLICY
    • PROXY
    • SCHEMA
    • WSDL
    The URL must be UTF-8 encoded. If the resource is stored in a directory, then the directory
    structure needs to be declared explicitly in the URL also.
    For example, in the Hello World project in Chapter 4 of this book, we defined aWSDL resource
    in the WSDL folder of the project. The name of that WSDL resource is set to HelloWorld. To retrieve
    this WSDL, you would use the following URL:
    http://localhost:7001/sbresource?WSDL/Hello+World/WSDL/HelloWorld

  • How to use the 'Decision between multiple alternatives' Process variant

    Hi ,
    Can anyone tell me how to use the 'Decision between multiple alternatives' Process variant in BI 7 Process chains ?
    The requuirement is that I have a DSO eg DSO 1 from which i have to load DSO 2 and DSO 3 . Now if the number of Records in DSO 1 are < 100 i will load DSO 2 from DSO 1 else i will load DSO 3 from DSO 1 .
    So in the PC i have used a 'ABAP Program' variant (which counts the number of rows in DSO 1) after loading DSO 1 and  after this 'ABAP Program' Variant , i have used the 'Decision between multiple alternatives' Process variant. Problem is it is giving me only some some system fields in the formula , like sy-datum or sy-timlo , which are of no use here .
    It would be great if i can receive some help here .
    --Devraj

    in RSPC you create a ABAP processing type "ending with specific values".
    We use true or false for things as you specify.
    your abap program should return a true or a false to indicate which of the situations is applicable.
    Is this helpful?
    Marco

  • How to use report agent to accelerate report processing?

    hi
       i have a report that runs 11 seconds. i have create aggregation for the cube, but it seems doesn't help much. i think may be report agent would helps. can anyone tell me how to create report agent to accelerate report processing step by step ?

    Please refer -
    http://docs.oracle.com/cd/E21764_01/doc.1111/e15867/reporting.htm
    http://jvzoggel.wordpress.com/2012/01/18/osb_tracing_report_action/
    Regards,
    Anuj

  • How to use a servlet adapter ?

    Hi all,
    I try to use the servlet adapter, but documentation is not very usefull on this point (like on many other point).
    The first step in documentation is : Create a directory in the classpath oracle.panama.adapter.servlet for the .class
    file. The MasterService creation should go smoothly (if you pray I suppose) if you also have the .class file in a similar directory where you
    are running the Service Designer.
    Questions :
    - I dont understand ' create a directory in the classpath oracle.panama.adapter.servlet'.
    What does it mean ?
    - How can I make the same thing on the client which running the Service Designer ?
    All input are welcome.
    rgds,

    Create your Servlet under the directory
    %ORACLE_HOME%\panama\server\classes\oracle\panama\adapter\servlet.
    The servlet should have the package declaration
    package oracle.panama.adapter.servlet;
    Copt the class file to the above mentioned directory.
    Then create a service using this class.
    Give the entire class name for the service
    eg
    package oracle.panama.adapter.servlet.Test
    where test is the servlet class name.
    null

  • How to use Start Task Group for Workflow Interface

    Hi all,
    anyone who can tell me how to use the Interface IFWFTSKGRP (Start Task Group for Workflow Interface)?
    As far as I understood the documentation it can be used to restrict the selection of workflows that can be started in the Generic Object Services. But the question is how to implement it.
    Best regards,
    Carsten
    Edited by: Carsten Drewes on Jun 10, 2009 10:30 AM

    Hi, Carsten,
    (probably it's a bit too late to post an answer after 3 years , but I'll post it in case someone else needs it)
    You should implement GetTaskGroup method.
    The code should return id of the task group (otype TG, mantained in PFTC) that holds the list of workflow definitions.
    Here is a sample implementation. It's taken from FORMABSENC business object. It belongs to SAP demo workflow "Notification of Absence". I suppose it should be present in most systems and you can see it in action.
    begin_method gettaskgroup changing container.
    DATA: taskgroup LIKE rhobjects-object.
    *- set task group
    taskgroup = 'TG70000023'.
      *- set result
    swc_set_element container result taskgroup.
    end_method.

  • How to use interface return value in workflow task

    Hi all,
    My team developed a proxy(interface) to fetch a field from web application(Non SAP) through PI. i tested that interface in SAP, its working fine. Interface is having one input, one output.
    Input - from SAP(employee number)
    Output - from webapplication (manager number).
    In my workflow, i have to use that manager number in decission task. For that i created a task, but in that task, iam unable to use the class and method name which is mentioned above. its giving an error "Interface implementation IF_WORKFLOW does not exist".
    Please guide me, how to use that interface output in my workflow.
    Regards
    Arani Bhaskar

    "Interface implementation IF_WORKFLOW does not exist".
    This error is triggered because the class which you are using in the task does not have included and implemented the interface IF_WORKFLOW , if at all you want to use any class methods in the workflow, then that class must supprot the interface IF_WORKFLOW
    what you can do is 
    1. Include the interface IF_WORKFLOW in the class that you are using to fetch the manager number,
    2. Make the method as Static Method .
    3. Just implement all the methods , I mean just double click each method of the interface, clcik on pretty printer and save it, to just implement all the methods.
    3. Do the appropriate bindings .
    And finally just execute the txn SWU_OBUF and click Shift+F1.
    this will help you to retrive the manager number intot the workflow

  • How to use a Servlet to do HTTP streaming?

    Hello, everyone!
    I want to use a servlet to do simple HTTP streaming, just like what Apache is doing now. I just want the basic functions of HTTP streaming. I want the Servlet works like this, reads data from a local media file and sends through HTTP to client player to do streaming.
    Where can I find some sample source codes?
    Best regards,
    George

    Can anyone help?
    George

  • How can i approve or start a workflow process for a rejected vacany in irec

    The users have rejected some vacancies mistakenly so how can i approve that vacany .Do i have i to restart the workflow process if yes then how can i do that .
    Thanks

    Hi Ramesh
    Thanks for your reply but is it possible that i can go in as sysadmin user and update the notification .I tried looking into the sysadmin user and workflow admin but i couldnt find it .It says that i cant update the notification that has already been approved

  • How to use GPU acceleration in final rendering process in AE CS6 updated?

    Hello guys!
    Maybe my question is a frequent, but in fact I didn't get answer listing FAQs here.
    So I have new NVIDIA Geforce card where CUDA supported. I enabled Ray-Traced 3d in "composition Settings" Advanced tab and also in fast preview settings. Everything OK and I can see no errors, but when I try to render one of video hive's projects, I see that CPU's  load is 95-100% but GPU's is only 0-2%. What is the secret? How to use GPU for project rendering?

    The GPU is used very little by After Effects.
    See this page for details of what the GPU is used for in After Effects:
    http://blogs.adobe.com/aftereffects/2012/05/gpu-cuda-opengl-features-in-after-effects-cs6. html

  • DIM Workflow - How can I return task status for workflow process

    Hi all,
    I'd like to build a DIM workflow process to run a unix shell script. Under the workflow, I've created a task object and assign the unix shell script into it.
    Although the DIM workflow works fine to run the unix shell script in the normal case, however, it cannot return the error status in the task when my shell script is failed (such as exit 2 at the end of script).
    May I know if there any setting in the workflow/task, in order to change the status on DIM workflow.
    Many thanks,
    hw

    Hi Ramesh
    Thanks for your reply but is it possible that i can go in as sysadmin user and update the notification .I tried looking into the sysadmin user and workflow admin but i couldnt find it .It says that i cant update the notification that has already been approved

  • 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

  • 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.

Maybe you are looking for

  • Where can I find original drivers for GV PowerPort Platinum Pro card?

    I know this is going back to the dark ages for some Mac users, but I was trying to install a Global Village PowerPort Platinum Pro modem/ethernet PCMCIA card in my old PB1400 and I keep running into the same problem: I get an immediate error message

  • How to know what are the missing items in 'Collect Files' ?

    I used 'Collect Files' to gather my medias for my project, but it's giving me this error in log: Number of missing items:  1 This project is pretty huge so how can I find out which items is missing ? I don't see any offline layers in my sequences...

  • On initial startup, wi-fi not connected, must restart

    Whenever I start up the iMac, the wi-fi fan is blank, and the error message says wi-fi hardware not connected.  After I restart, everything works fine.  Minor issue, but it would be nice if everything worked fine on initial startup.

  • Infosource invisible in Productive system (APO BW)

    Hello I've created a new setup where i'm uploading from a flat file to an infocube. It works fine in the T and Q system. However after transport to the P system i can only see the infocube in RSA1, i cannot see the infosource so i can't create an inf

  • Compensation managment and benefits

    hi experts, is befits topic useful for indian payroll i know it is not useful can any one give the explanation why it dosent work. can any one explain whether compensation managment can be done for indian payroll. if with out payroll implemantation f