Starting a workflow from form manager

Hi,
I am trying to kick off a workflow by submitting a form present in the form manager repository. In my workflow, I am unable to set a workflow variable with any of my form fields data. The XPath Exression does not seem to work for me.
However, when I submit the same form from outside the form manager and try to fetch a form field data (using the same XPath Expression) I am able to fetch.
What may be the reason for this? Any help would be much appreciated. I can send you my form and the workflow file if required.
Thanks and regards,
Shivajiv.

Thanks for your help Jennifer. I got this sorted out. When a workflow is triggered from FM the xpath expression is a bit different -
It is like this - /process_data/[MyForm Variable Name]/form-data/data/xdp/datasets/data/fields/[my subform name]/NumericField1
instead of - /process_data/[MyForm Variable Name]/form-data/data/xdp/datasets/data/form1/[my subform name]/NumericField1 i.e. if there is no schema bound to the form that defines the structure of the data top level form node will be renamed to "fields"
Thanks and regards,
Shivajiv.

Similar Messages

  • ** Start a workflow from BPM

    How do we start a workflow from BPM ? (For example, to send messages to that workfolw and receive messages like these purposes)
    Kind Regards,
    Jeg P.

    hi jeg.
    here some blogs and pdfs about BPM to understand how to use it
    /people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers
    http://help.sap.com/saphelp_nw04/helpdata/en/3c/831620a4f1044dba38b370f77835cc/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/62/dcef46dae42142911c8f14ca7a7c39/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/de/766840bf0cbf49e10000000a1550b0/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cb/15163ff8519a06e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/08/16163ff8519a06e10000000a114084/content.htm
    Many other examples can be found under the following link at help.sap.com
    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    And some weblogs
    https://weblogs.sdn.sap.com/pub/wlg/1403 [original link is broken] [original link is broken] [original link is broken]
    /people/siva.maranani/blog/2005/05/22/schedule-your-bpm *****
    /people/krishna.moorthyp/blog/2005/06/09/walkthrough-with-bpm
    /people/michal.krawczyk2/blog/2005/06/11/xi-how-to-retrieve-messageid-from-a-bpm
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    /people/sravya.talanki2/blog/2005/08/24/do-you-like-to-understand-147correlation148-in-xi
    /people/michal.krawczyk2/blog/2005/09/04/xi-do-you-realy-enjoy-clicking-and-waiting-while-tracing-bpm-steps *****
    Hope helps
    Rodrigo

  • Workflow from form

    I am trying to initiate a workflow from a form. I have seen several posts in the forums and confusing. I have a form called example user form. In that form I have placed a button. I want as soon as I press the button; test workflow should initiate. Workflow should open another form 'Empty Form'
    Now as per forums I have created the workflow 'Test Workflow' with these 2 activities as below -
    <!--  MemberObjectGroups="#ID#Top" createDate="Mon Jun 12 12:17:38 CDT 2006" id="#ID#7544524B68A1C1D9:4789E350:10BB9306919:-7FE9" name="Test Workflow" visibility="runschedule"-->
    <TaskDefinition id='#ID#7544524B68A1C1D9:4789E350:10BB9306919:-7FE9' name='Test Workflow' creator='Configurator' createDate='1150132658734' lastModifier='Configurator' lastModDate='1150731476953' lastMod='79' taskType='Workflow' executor='com.waveset.workflow.WorkflowExecutor' suspendable='true' syncControlAllowed='true' execMode='sync' execLimit='0' resultLimit='0' resultOption='delete' visibility='runschedule' progressInterval='0'>
      <Form objectLocationID='isBegin=true&objectID=%23ID%237544524B68A1C1D9%3A4789E350%3A10BB9306919%3A-7FE9&objectPath=10&objectType=TaskDefinition'>
        <Include>
          <ObjectRef type='UserForm' name='Example Form'/>
        </Include>
        <FormRef name='Example Form'/>
      </Form>
      <Extension>
        <WFProcess name='Test Workflow' maxSteps='0'>
          <Activity id='0' name='activity1'>
            <ManualAction id='0' name='Form Start' syncExec='true'>
              <FormRef>
                <ObjectRef type='UserForm' id='#ID#UserForm:ExampleViewForm' name='Example Form'/>
              </FormRef>
            </ManualAction>
            <Transition to='activity2'/>
            <WorkflowEditor x='168' y='161'/>
          </Activity>
          <Activity id='1' name='start'>
            <Transition to='activity1'/>
            <WorkflowEditor x='122' y='36'/>
          </Activity>
          <Activity id='2' name='activity2'>
            <ManualAction id='0' syncExec='true'>
              <FormRef>
                <ObjectRef type='UserForm' id='#ID#Form:EmptyForm' name='Empty Form'/>
              </FormRef>
            </ManualAction>
            <Transition to='end'/>
            <WorkflowEditor x='324' y='161'/>
          </Activity>
          <Activity id='3' name='end'>
            <WorkflowEditor x='324' y='315'/>
          </Activity>
        </WFProcess>
      </Extension>
      <MemberObjectGroups>
        <ObjectRef type='ObjectGroup' id='#ID#Top' name='Top'/>
      </MemberObjectGroups>
      <Properties>
        <Property name='editorOriginalName' value='Test Workflow'/>
      </Properties>
    </TaskDefinition>--------------------------------------------------------------
    Now in the exapmple form how do I specify that upon pressing the button; this workflow should be initiated. Below is the button definition in 'example Form' -
    <Field name='New wf link'>
      <Display class='Button' action='true'/>
      <Expansion>
        <s>'Test Workflow'</s>
      </Expansion>
    </Field>---------------------------
    Not sure what am I missing or how to configure this ?

    Hello Ketan,
    thanks again so much for your response.
    I wasn't sure if you preferred that I reply you on the Forum, or via email, since you wrote down your email address.
    In response to your question..........I am not really sure how the Form is mapped. I customized the Form basically for one thing only : to CREATE USER.
    What I did was : I copied the original IDM "Create User" form, modified it the way I wanted it, and imported it back into the Repository.
    So, now, I have a fully-functional, customized form, for creating Users.
    This form contains the original "Buttons" at the end : SAVE, CANCEL, TEST, etc.
    I have no idea if it should be mapped anywhere. And, if it should, I don't know how to do this.
    When the Form is completed, and I press SAVE, everything happens at it should. The Form is saved, the new User is created.
    However, I want other things to happen, too. This is why I am so stuck on creating Workflows.
    Let me give you an example :
    For instance, the following simple script is part of my User Form (selection from a dropdown menu) :
    <Field name='orderlunch'>
    <Display class='Select' action='true'>
    <Property name='title' value='Order Lunch'/>
    <Property name='allowedValues'>
    <List>
    <String>- Please Select -</String>
    <String>Yes</String>
    <String>No</String>
    </List>
    </Property>
    </Display>
    </Field>
    A small XML code, to indicate an order for lunch.
    Naturally, if the user selects "No", then nothing happens.
    But, if he selects "Yes", then I would like the Form to send an Email Notification to the appropriate person, notifying him that lunch has been ordered. (of course, I would need to indicate such things as WHO ordered the lunch, WHEN, etc, etc. But, I will get into that later)
    In other words, if I choose "YES" for that particular variable, and then I press SAVE, to save and submit the form, then I want the Workflow to send an email notification.
    I am guessing that, the code in the Workflow will be something like the following (Please, correct me if I am wrong)
    *<eq>*
    *<ref>orderlunch</ref>*
    *<s>YES<s>*
    *</eq>*
    ----- Create a new activity ----
    *<Action id='0' application='com.waveset.provision.WorkflowServices'>*
    *<Argument name='op' value='notify'/>*
    *<Argument name='template' value='Name of Email Template'/>*
    *<Argument name='toAddress' value='toaddress'/>*
    *<Argument name='smtpHost'>*
    *<ref>SMTPhost</ref>*
    *</Argument>*
    *<Argument name='from'>*
    *<ref>from address</ref>*
    *</Argument>*
    *</Action>*
    Is this correct?
    Please, help me out here.
    Thanks again

  • Starting a workflow from an XML file

    Does anyone know if there is anyway to have a workflow poll a folder for the existence of an XML file and start a workflow with it? When looking in the documentation, there is a mention of a scheduler. I need to integrate with a fairly old system that can only read and write text files. Any help is appreciated.
    Dave

    Hi Dave
    This is actually quite easy to achieve. We use this design pattern regularly, and it works very nicely.
    Here are the steps:
    * Download and deploy the DocumentImport, FolderWatch and FileCopyMove QPACs from http://www.avoka.com/avoka/qpac_library.shtml
    * Create a workflow that is your "Watcher" process.
    Step 1 in this will use the FolderWatch to wait for a file in the designated folder, capturing its name when it appears.
    Step 2: use the FileCopyMove to move the found file to a "Processed" directory. (Click the current-date checkbox to include the current date as a sub-folder - very handy.) Moving the file ensures that it won't be reprocessed on the next iteration.
    Step 3: Use the Chain QPAC (or our ChainPlus) to start the real process, passing the name of the newly moved file as a parameter. Then, have this Workflow loop back to step 1.
    If you make this workflow asynchronous, then it will even survive server restarts, so no need to restart it each time. The Watcher workflow will create one "real" workflow for each file that arrives in the watched folder.
    * Create the real workflow. It should have one "in" variable that is the name of the file. Step1: Use the DocumentImport QPAC to import the file into a process variable. You mention XML, so import into an XML variable. If the file is a properties file, then we also do have a properties file import QPAC. You're done, you can do the real workflow now.
    If you have any problems with this, please let us know.
    Regards,
    Howard
    PS You should periodically stop and restart the watcher process. The reason for this is that you will get a LOT of entries in the audit trail for this process instance in adminui, and stopping and restarting keeps this to manageable numbers.

  • Start OWB workflow from APEX

    Hi together,
    My challenge is to start an OWB workflow from an apex procedure.
    Procedure:
    declare
    numb number;
    audit_id number;
    begin
    numb := rtruser_blueprint.exec_api.execute('LOC_A014_OWF_MGR', 'PROCESS', 'LOAD_CALM_DELIVERY', ',', 'DELIVERY_ID_IN=6', audit_id);
    end;
    My problem is the following error:
    ORA-06565: cannot execute SET ROLE from within stored procedure
    This error occures at the following row in the execute-Procedure in the package exec_api (standard owb execution package):
    dbms_session.SET_ROLE('OWB_D_rtr10201_blueprint');
    dbms_session.SET_ROLE('OWB_O_rtr10201_blueprint');
    If I run this script directly with sqlplus, the procedure works fine. As a result of this, I assume, the problem has to do with the grants which the apex execution user (APEX_PUBLIC_USER) doesn't have in contrast to the blueprint user (which is schema owner)
    More informations about the environment setup:
    The apex workspace is bound to the database - user: BLUEPRINT.
    BLUEPRINT has the grant to execute the procedure 'EXECUTE' in the package 'EXEC_API'. The 'EXEC_API' package belongs to the user 'RTRUSER_BLUEPRINT'.
    My concrete question is: Which rights / grants does which user need to execute the procedure directly from APEX?
    Thanks for your help!
    Mirco

    What account were you using when you ran the 'execute_api' procedure from SqlPlus ? Also, all SQL and PL/SQL from APEX is executed as the application's parsing schema id and not the schema used by APEX to connect to the database.

  • Start report server from forms.

    Hello everybody, merry chrismats to all.
    Im working with Forms & Developer DevSuite in Red Hat Linux ES/AS.
    Sometimes when I call a report from form using RUN_REPORT_OBJECT the report server is up & working but the forms dont find it & say FRM-41213 error, but after trying sometimes it begin to work.
    Question : ¿ Is there anyway to start and stop report server from forms ?
    Thanks in advanced & regards.

    Hello,
    For all queries involving testcases or queries that are potentially bug related
    we recommend you log a Service Request (SR) with Support via Metalink (http://metalink.oracle.com).
    This will ensure your query is tracked appropriately and any urgent requests can be
    dealt with in a timely manner by Global Support Services. May we also take this opportunity to remind you that the Metalink Library pages contain many Forms / Reports
    articles which could be of use to you.
    Best Regards
    Denis SEGARD

  • Start a Workflow from an incoming Internet message

    Hi All,
    I have a requirement , where I need to trigger a Workflow from incoming outlook email.The email will also have a PDF    attachment of Invoice which should get archived and other details should help to trigger the workflow.
    I checked in Inbound Distribution(SO28), but not sure how I could configure the same.
    Or Is there any other possibility that I could look for?
    Kindly give you inputs.
    Regards,
    Bhargavi Vaidya

    Hi,
    Kindly please check the transaction SO50.
    Also check the follwoing link, this might be helpful.
    /people/thomas.jung3/blog/2004/09/09/receiving-e-mail-and-processing-it-with-abap--version-610-and-higher
    Thanks andregards,
    SNJY

  • Starting existing workflow from web dynpro application (ABAP)

    Hi experts,
        I am working on web dynpro application from which when I click on a button an existing workflow should trigger. This will be used in portal replacing existing iview with jsp. I did lot of reading on SDN maybe too much that I am confused how to get started. Here is what I have currently.
    We have an existing workflow that sends an approval email to manager when ever some unit information changes. In current functionality, workflow is triggered by event which is linked to workflow in transaction "swetypv". We defined scenario in "qisrscenario" that contains all elements to populate workflow container. The methods to get data into workflow container, send email etc are all written in business object methods. We have a class that implements standard SAP BADI "IF_EX_QISR1"(IF_EX_QISR1~SCENARIO_PROCESS_USER_COMMAND method) that probably has all logic. In current functionality when the workflow gets created it sends notification number back to portal jsp page that triggered the workflow on button click. Users look at notification number in iqs23 for workflow log, PCR form data etc. and I need that functionality too. Now I am confused where I should start so that I can use ew web dynpro applciation instead of jsp iview but want all the functionality that we currently have. How can I start workflow and get notification number back to web dynpro so that I can display that to user? The approving manager goes to UWL to approve, reject the workitem and workflow then finishes.
    Any help will be greatly appreciated.
    Thanks.
    Mithun

    Hi.,
    Using FM  SAP_WAPI_CREATE_EVENT  You can Achieve this., try the below piece of code.,
    DATA: OBJECT_TYPE  TYPE  SWR_STRUCT-OBJECT_TYP VALUE 'ZBUS333',   " Enter Your Business Object here
    OBJECT_KEY  TYPE  SWR_STRUCT-OBJECT_KEY,
    EVENT TYPE  SWR_STRUCT-EVENT VALUE 'FIRE'.     " Enter Your Event here
       DATA: lt_cont TYPE STANDARD TABLE OF swr_cont,
             ls_cont TYPE swr_cont.
           ls_cont-element = 'NAME'.       " To Pass Values to business Object you append to container
           ls_cont-value   = lv_name.
           APPEND ls_cont to lt_cont.
           ls_cont-element = 'ID'.
           ls_cont-value   = lv_id.
           APPEND ls_cont to lt_cont.
          CALL FUNCTION 'SAP_WAPI_CREATE_EVENT'
            EXPORTING
              OBJECT_TYPE             = OBJECT_TYPE
              OBJECT_KEY              = OBJECT_KEY
              EVENT                        = EVENT
             COMMIT_WORK             = 'X'
             EVENT_LANGUAGE          = SY-LANGU
             LANGUAGE                = SY-LANGU
             USER                    = SY-UNAME
    *         IFS_XML_CONTAINER       =
    *       IMPORTING
    *         RETURN_CODE             =
    *         EVENT_ID                =
           TABLES
             INPUT_CONTAINER         = lt_cont
    *         MESSAGE_LINES           =
    *         MESSAGE_STRUCT          =
    hope this helps u.,
    Thanks & Regards,
    Kiran

  • Starting a workflow from the ribbon

    Hi
    I'm running SharePoint 2013 with Workflow Manager 1.0.
    I have a SharePoint Desginer Workflow which start from the following
    URL:
    ~site/wfsvc/06f8de2413bc41fe869414fc061435f9/WFInitForm.aspx?List={ListId}&amp;ID={SelectedItemId}&amp;TemplateID="
    + workflowTemplateId +
    "&amp;WF4=1&amp;Source={Source}'
    I've included the above in my Custom Action Definition (created programmatically in c# code).
    I can however not figure out where to get my workflowtemplateId from. I found some articles about how to do this in 2010 workflows but none about workflow manager 1.0 workflows.
    Just in case it helps. I'm creating the workflow subscription as follows:
    var clientContext = new ClientContext(web.Url);
    var workflowServiceManager = new WorkflowServicesManager(clientContext, clientContext.Web);
    var workflowDeploymentService = workflowServiceManager.GetWorkflowDeploymentService();
    var workflowSubscriptionService = workflowServiceManager.GetWorkflowSubscriptionService(); 
    var unpublishedWorkflowDefinitions = workflowDeploymentService.EnumerateDefinitions(false);
    clientContext.Load(unpublishedWorkflowDefinitions);
    clientContext.ExecuteQuery();
    foreach (var unpublishedWorkflowDefinition in unpublishedWorkflowDefinitions)
         if (unpublishedWorkflowDefinition.DisplayName == workflowName)
                                        // Re-Publish the Definition
                                        workflowDeploymentService.RefreshLoad();
                                        clientContext.ExecuteQuery();
                                        workflowDeploymentService.SaveDefinition(unpublishedWorkflowDefinition);
                                        clientContext.ExecuteQuery();
                                        workflowDeploymentService.PublishDefinition(unpublishedWorkflowDefinition.Id);
                                        clientContext.ExecuteQuery();
                                        // Create new subscription
                                        WorkflowSubscription newSubscription = new
    WorkflowSubscription(clientContext)
                                            DefinitionId = unpublishedWorkflowDefinition.Id,
                                            Enabled = true,
                                            Name = associationName
    I expected templateId to be something like the newSubscription.DefinitionId but that doesn't give me the right Guid.

    var workflowSubscriptions = workflowSubscriptionService.EnumerateSubscriptions();
    clientContext.Load(workflowSubscriptions);
    clientContext.ExecuteQuery();
    foreach(var workflowSubscription inworkflowSubscriptions)
    // workflowSubscription.ID now contains the ID that we need.
    Full details can be found on my blog: http://wp.me/p1fg2Y-8F

  • Start PO workflow after approved from first level

    Hi Guys,
    I have i typical requirement i my knowledge its not possible.
    What exactly has happened is that after upgrade BUS2012 event linkage was not active and there where no workflow got triggered for PO approval
    But the line manager have gone and approved the POu2019s from ME29N now for the next level they are asking to send the workflow as we have activated the linkage.
    Any idea how can we start the workflow from that point again.
    Atul

    Hi Atul,
    In production how many workflow's are there like this?
    Its small amount of workflow's then you can again manually trigger the workflow using SWUE[You should pass the object key as purchase order number] and Complete the first level of workflow.
    So it will be go for Second level of Approval.
    If you have large amount of workflows that are already Triggered in production, then you have to discuss with your client about the issue.
    Thanks,
    Viji.

  • Error while starting workflow from warning msg or error msg?

    Hello experts,
    I m tryin to start and workflow from error msg of ME21...whn we juss click enter without entering any value, it gives error as -" enter Purch org  ". whose msg class - ME and msg num - 083.
    thn from t-code SWUY,i creating and linked workflow for the msg.
    Now while testing,when m goin to t-code ME21, and goin to the long text of tht error msg.....the button to start workflow is not getttin enabled. tht is still disable.
    PLease tell r thr any other back ground settings to be done for this.
    Regards
    Nitin

    Hi,
    Your workflow landed up in Error and you want to Restart it right.
    Go to SWPR and check that workflow is there.
    If found, select it and Restart it.
    Regards,
    Surjith

  • Starting workflow from messages

    Hi,
    I am trying out the possibility of starting workflows when a message is raised (Error/Warning). Once i create the message to workflow linkage i am able to start the workflow from the message long text.
    In this scenario is there a way to start the workflow automatically whenever that particular error message occurs?
    For example consider transaction PA30. Now if i try to enter a character value in place of personnel number i get an error message "Enter a Numeric Value". Now once i link the workflow to the message i am able to start the workflow manually. But can this be done automatically on the occurence of this message?
    Thanks,
    Prasath N

    Hi Karun,
    Thanks for your response. I have done this already and it is workfing fine when i start the workflow manually. I would like to know if there is an option to start the workflow <b>automatically (without pressing the workflow button)</b> when the message is raised.
    Thanks,
    Prasath N

  • Can a workflow process continue from form trigger?

    in my workflow project i have launched a workflow process from a form.in the process there is a notification from which i can open a form for further modification of data .currently i am continuing this particular process by pressing an 'updated' button in the notification after updating the data from form. if not updated it'll send that notification back again.can i do the same functionality through a button say 'updated' in the form called from the notification?
    ie i want to continue my process from my custom form called from notification,not by responding the notification's button itself .
    anyway i have completed the project succesfully.if anybody needs any help related to the functionalities noted above ( like 1.launching workflow from form or concurrent program
    2.opening(querying a custom form with particular data) a custom form from notification.
    3.submitting concurrent program from a workflow process ) can contact me at [email protected]

    When we consider that email is simply a communications protocol being leveraged by the workflow, it becomes clear that the problem most likely lies in the email enablement of your Archive list.  If your Archive list is indeed identical to the Requests
    list, then I would take a look at configuration for email on that list as it probably isn't configured correctly.  Additionally, you may wish to double check the email alias you're using in the workflow.  Sending email to the wrong email address
    is just a slip of the keyboard but can result in many hours of debugging.  Ultimately, I would recommend tracking the email through Exchange logs to see if it's received and sent correctly.
    I trust that answers your question...
    Thanks
    C
    |
    RSS |
    http://crayveon.com/blog |
    SharePoint Scripts | Twitter |
    Google+ | LinkedIn |
    Facebook | Quix Utilities for SharePoint

  • How to start a Java ADF application from Forms 10g

    Hi,
    I have a Java ADF application deployed to the OAS.
    How can I start the application from Forms 10g?

    By using the web.show_document forms built-in procedure... passing the web address of your ADF app as parameter.....
    Greetings...
    Sim

  • InfoPath 2013 start a workflow

    In a new InfoPath 2013 form that uses a custom list, I would like to add a custom button and/or something to click on for the user to eventually 'start a workflow when item changes'.
    Right now since I am in the early phase of the process, and it would be fine to 'start the process manually' also. Basically I would like directions on what a user can click to they could start the workflow.
    I found the following link and it shows how to start a workflow from the documents library:
    https://www.youtube.com/watch?v=afttEV61kQI
    I would like to know how to have this same process occur from an InfoPath 2013 form where the user clicks my 'button/item' and does not click on the 'auto generated' save button.

    assuming that the workflow should not necessarily start ANY time ANY file changes (which is a default option, and requires no custom dev effort)... what I've seen a few times, is for the form to include a checkbox ("start workflow")... the workflow
    starts, and checks for the condition... and stops if the checkbox is not checked.
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

Maybe you are looking for

  • Getting a copy of Cold Fusion 6

    Hi All, I've got a client who needs support for his CF 6 app. He doesn't want to upgrade to CF 8 right now, but that makes troubleshooting and development work a bit difficult, because I don't have a CF 6 license anywhere. I know you can download fre

  • Order to Cash scenario

    Dear  Friends, Am a technical resource and have some good exposure to SD order to cash flow and transactions! But cannot put them in a sequence since am not in touch with SD or any logistics for quite time now! Can some one please get me info. about

  • Strange lines in pixel-preview mode

    Hi! I have a problem. When I'm drawing something with two windows (one is usual other in pixel preview) I have some strange white lines in pixel preview window. How can I solve it? Hope picture will clarify my question. Link to full size picture: htt

  • Howto execute java jar file via html ?

    hi howto execute java jar file via html ? could someone pls post a html code ? kind regards upiter77

  • Merging Cells in Custom Section

    Is it possible to merge cells in Custom Sections similar to the merge cells functionality in Excel where you can merge 2 cells into 1 cell?