Calling a workflow from workflow

Hi All,
I want to call a workflow from a workflow. How to do that?

thats right..Call a workflow sub process from a workflow process. The main difference between workflow process and workflow subprocess is that workflow sub process are of configuration type and workflow processes are TaskDefinition type.
null

Similar Messages

  • [Data Services]Calling stored procedure from scripts in parrallel workflows

    Hello.
    I am using Data Services XI .3.2 with Oracle Database 11g
    Situation is like this:
    I have a workflow that has a script that using function sql() performs a simple select. 
    Example:
    sql('DW_CTL','select 1 from dual');
    If I call this workflow 4 times in parrallel, the job is somehow locked and waits for undefinitely time.
    But If I call these 4 workflows in secvential order, it completes successfully.
    My problem: how do i make it run in parallel ? Why do i have this problem ?
    Does anyone have a clue ?
    Regards,
    Radian

    I am using Reports 9i & use JDBS query. When it gets to the section that says enter SQL or Stored proc, I enter a simple TEST proc which takes no params & get error msg as explained before ... I don't see any info in the Reports manual as to how to call a proc ... where would I find that info?
    Thx.

  • Calling Webdynpro application from Workflow Task

    Hi All,
    How do i call a custom Java WebDynPro Application from my task? How to pass the container values to the Webdynpro application.
    Can some one help me out?
    Thanks,
    Sarath

    Hi sarath,
    u see this thread, u get more information
    calling web dynpro from workflow - SWFVISU
    Calling Java code from Webdynpro Abap UI
    WebDynpro application that can work with SAP workflow work items?
    WebDynpro in Workflow
    Regards,
    vino

  • How to call a Workflow from a Report in SE38?

    How to call a Workflow from a Report in SE38?
    Please can Anyone Send me a Source code (with Explanation)which I can use for calling Workflow >> WS99900253?
    Regards,
    Shashank.

    you can use FM
    SAP_WAPI_CREATE_EVENT
    SWE_EVENT_CREATE
    OR
    SAP_WAPI_START_WORKFLOW
    Regarding usge of this FMS search the forums you will get ample examples.
    Thanks
    Arghadip

  • How to call java method from workflow script?

    Hi
    I have a requirement of updating field value 'Document Status' based on review/approve of content from Workflow and hence need to update the version number. For that I need to call my java method from workflow during submit of review/approve condition. Please let me know how to call java method from workflow?
    Is there any alternative better way to achive this requirement from workflow? Please suggest.
    Thanks,
    Sarang

    OK. So, I think we can all conclude that you don't need to call any Java method, can't we? And, that wfUpdateMetadata is the command that will update your metadata.
    Now, the question is what are its arguments. It has two - the first is the name of a custom metadata field to be updated (let's suppose that one field is called xMinorVersion, and the other xMajorVersion), the other is the new value, e.g. <$wfUpdateMetaData("xMinorVersion", "New value.")$>As for new value - do you insist on using strings? Since you want to increase the value, it would be more convenient to work with numbers. For instance, with integers you could go with <$wfUpdateMetaData("xMinorVersion", xMinorVersion + 1)$>With strings you will need to convert it to numbers and back to strings. Besides, what happens if you have more than 100 minor versions? (you mentioned you want to add 0.01, but that would finally increase the major version, wouldn't it?) So, I think these two numbers are independent (perhaps, with exception that increase on the major version set the minor version to .00).
    If you want to present it, you can use profiles that will construct for you the representation 2.304 out of MajorVersion = 2, MinorVersion = 304
    Solved?

  • Urgetn - Can you call a url from a workflow?

    Hey,
    Does anyone know if you can call a url from a workflow?
    Your urgent attention would be grateful.

    I have done this in a form. You could put a manual action to call the form then display the url (Technical Reference 3-14)
    <Field>
    <Display class='Link'>
    <Property name='name' value='Request
    Group Access'/>
    <Property name='URL'
    value='user/processLaunch.jsp?newView=true'>
    <Property name='id' value='Group Request
    Process'/>
    </Display>
    </Field>
    Hope this helps
    BigBenny

  • Calling a workflow from a program

    Hello All,
    I am calling a workflow using FM 'SAP_WAPI_START_WORKFLOW' from se38 abap program.
    My workflow consists of simple user decision to approve and reject.
    From my t.code SWDD if I execute the workflow, it will take me to test workflow screen and there again I have to execute once more to see the mail with approve and reject button in my inbox of bussiness workplace.
    But when I call the worflow using the above FM it does not work.
          CALL FUNCTION 'SAP_WAPI_START_WORKFLOW'
              EXPORTING
                task                = 'WS99000093'
               language         = sy-langu
              IMPORTING
               return_code    = p_subrc
              workitem_id     = p_workitem.
    It doesn't get triggerred I guess. Is there something to do with the double execution as above which takes place when we do it manually ( one normal execution of workflow and another test workflow).
    Help Appreciated.
    Regards,
    Mac

    cross-post, please ask each question only once, this one will be locked.
    Thomas

  • Calling a workflow from Extended Controller

    Hi,
    I want to call a workflow from an extended controller, I wrote the following code:
    if ("return".equals(event)) {
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    processReturn(pageContext, webBean, am);
    String srNo = "";
    String sql = "BEGIN xx_sr_notf_pkg.invoke_wf (:1); END;";
    String status = null;
    OracleCallableStatement cs =
    (OracleCallableStatement)am.getOADBTransaction().createCallableStatement(sql,1);
    but it seems that the second line (processReturn(pageContext, webBean, am)) is not being executed...
    Any suggestions ?
    Thanks

    Now,how is it possible to capture the value of Requisition Line ID in iProcurement, or even better the record of >po_requisition_lines_all from my extended Controller (xxCheckoutDistsCO) ?In your page check if any VO has "Requisition Line ID" as its attribute. Then you can get it using
    vo.getCurrentRow().getAttribute("Attribute_name");
    Or
    Check in seeded CO, you may find some code which is used to get "Requisition Line ID"
    -Anand

  • Call business event from oracle workflow

    Hi,
    how to call business event from oracle workflow ?
    if possible, could you give any sample code.
    Thanks.

    In short terms: assign values to the attributes that compose the payload of the event. Then raise it. Here a simple example of raising the Flex Field compilation event:
    declare
    l_application_id fnd_application.application_id%TYPE := &1;
    l_descriptive_flexfield_name varchar2(200) := '&2';
    l_application_short_name fnd_application.application_short_name%TYPE;
    l_parameters wf_parameter_list_t := wf_parameter_list_t();
    begin
    SELECT application_short_name
    INTO l_application_short_name
    FROM fnd_application
    WHERE application_id = l_application_id;
    wf_event.addparametertolist(p_name => 'APPLICATION_SHORT_NAME',
    p_value => l_application_short_name,
    p_parameterlist => l_parameters);
    wf_event.addparametertolist(p_name => 'APPLICATION_ID',
    p_value => l_application_id,
    p_parameterlist => l_parameters);
    wf_event.addparametertolist(p_name => 'DESCRIPTIVE_FLEXFIELD_NAME',
    p_value => l_descriptive_flexfield_name,
    p_parameterlist => l_parameters);
    wf_event.raise(p_event_name => 'oracle.apps.fnd.flex.dff.compiled',
    p_event_key => (l_application_short_name || '.' ||l_descriptive_flexfield_name),
    p_event_data => NULL,
    p_parameters => l_parameters,
    p_send_date => Sysdate);
    end;
    Regards.

  • Calling Oracle Workflow in Real-Time

    I want to modify the logic in Oracle Apps (both Oracle self-service (pure HTML and JSP) and Oracle Forms applications) to make real-time calls to a mainframe system. The page needs to take different actions depending on the data from the mainframe system.
    I want to avoid actually customizing the Apps and Forms pages if possible due to customization maintenance and support issues. I have been told that I can use Oracle Workflow to modify the actions of the pages without having to resort to customizations, as calls to Workflow are already embedded. Is this true, and if so, how would I go about inserting a call to a mainframe system?
    I am considering mainframe calls using either a proprietary ODBC driver from a third-party vendor, or devising some sort of SOA interface to the mainframe (I know it would require custom development on the mainframe side).
    Thanks!

    I'm pretty sure the sbRIO cards only have 1 FPGA on them.  So when you load the second FPGA code, the first is being overwritten.  You need to make a single FPGA VI that can handle both functions.  If you post your code, we can give more detailed advice.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Lead to Oppy Method call or Workflow

    Hi All,
    When shall we use the option of method call and workflow for automatic creation of Oppt from lead.
    We can use method call and also workflow for  it. but whats the pros and cons of these two methods.when do we use what.
    Sanjana

    Hi Sanjana
    The correct (and customizable) way to do so is to use the so-called post processing framework (PPF), which exists in CRM only. In transaction sppfcadm you can define an action profile with an action which calls a COPY_DOCUMENT and passes as a parameter the opportunity process type. You then have to define a start condition (e.g. qualification status = hot) and a planning condition (e.g. status = closed) and then it runs automatically.
    Please also have a look at the existing examples for the opportunity sales methodology, in standard customizing there is something similar set up between activities and opportunities.
    Regards, Kai

  • Can we call a workflow form a JSP and/or form a Java Class?

    Is it possible to call a workflow form a JSP and/or form a Java Class?

    Below is some xpress code I wrote once, used to dynamically lauch workflows from within a workflow. Since it basically uses java classes, you reuse these in your java program or jsp:
    - create a new generic object
    - call the setId, put, ... methods on it
    - set the input variables for the workflow by putting them into the generic object
    - call the checkinView method on a LighthouseContext object which launches your workflow.
    If all you need is starting a workflow from a jsp, you might also want to take a look at the tasks/taskLaunch.jsp jsp. This is an out of the box jsp which allows launching of tasks. If I remember correctly you have to give an url parameter which specificies the name of task you want to start: tasks/taskLaunch.jsp?id=<workflow-name>
    - Robin
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE TaskDefinition PUBLIC 'waveset.dtd' 'waveset.dtd'>
    <TaskDefinition name="MVG_TD_LaunchWorkflow" taskType="Workflow" executor="com.waveset.workflow.WorkflowExecutor" suspendable="true" syncControlAllowed="true" execMode="sync" execLimit="0" resultLimit="0" resultOption="delete" visibility="runschedule" progressInterval="0">
         <Extension>
              <WFProcess name="MVG_TD_LaunchWorkflow">
                   <Variable name="workflowName" input="true"/>
                   <Variable name="taskInstanceName" input="true"/>
                   <Variable name="inputs" input="true"/>
                   <Variable name="processView"/>
                   <Activity name="start">
                        <Transition to="createProcessView"/>
                   </Activity>
                   <Activity name="createProcessView">
                        <Action>
                             <block trace="true">
                                  <set name="processView">
                                       <new class="com.waveset.object.GenericObject"/>
                                  </set>
                                  <invoke name="setId">
                                       <ref>processView</ref>
                                       <s>ProcessViewer</s>
                                  </invoke>
                                  <invoke name="put">
                                       <ref>processView</ref>
                                       <s>task.process</s>
                                       <ref>workflowName</ref>
                                  </invoke>
                                  <invoke name="put">
                                       <ref>processView</ref>
                                       <s>task.taskName</s>
                                       <ref>taskInstanceName</ref>
                                  </invoke>
                                  <if>
                                       <notnull>
                                            <ref>inputs</ref>
                                       </notnull>
                                       <then>
                                            <invoke name="assimilate">
                                                 <ref>processView</ref>
                                                 <ref>inputs</ref>
                                            </invoke>
                                       </then>
                                  </if>          
                             </block>
                        </Action>
                        <Transition to="checkInProcessView"/>
                   </Activity>
                   <Activity name="checkInProcessView">
                        <Action>
                             <block trace="true">
                             <invoke name="checkinView">
                                  <invoke name="getLighthouseContext">
                                       <ref>WF_CONTEXT</ref>
                                  </invoke>
                                  <ref>processView</ref>
                                  <new class="java.util.HashMap"/>
                             </invoke>
                             </block>
                        </Action>
                        <Transition to="end"/>
                   </Activity>
                   <Activity name="end"/>
              </WFProcess>
         </Extension>
         <MemberObjectGroups>
              <ObjectRef type="ObjectGroup" id="#ID#Top" name="Top"/>
         </MemberObjectGroups>
    </TaskDefinition>

  • How to trace/debug main workflow calling sub workflow.

    Guys,
    I am calling Sub workflow from MAIN workflow.
    I am able to trace till beginning of sub workflow, with the help of workflow log.
    But, is it possible to trace/debug the sub workflow as well(in single stretch).
    Please guide with t-codes & procedures(links).......
    Regrads.
    santosh.

    Hi Santosh,
    You should be able to see the technical log for the subflow as well - but perhaps that's not what you are asking.
    First, you should always be able to 'trace' your subflows by starting them directly via SWUS.  Then you will have the log to review.
    You can also set the workflow trace on via SWU9.
    Hope this helps,
    Sue

  • Calling a Workflow form changeAnswersResults.jsp

    Can we call a workflow form changeAnswersResults.jsp?
    In changeAnswers.jsp, when we click on Save or Cancel, accordingly I want to call two different workflows (may one)
    Can anyone give me example?
    Thanks

    hi,
    u can use following code
         LighthouseContext _lhSess = null;
    _lhSess = (LighthouseContext) new com.waveset.session.InternalSession();
    TaskDefinition taskDef = (TaskDefinition) lhSess.getObject(Type.TASKDEFINITION, "workflow name");
    TaskTemplate template = new TaskTemplate(taskDef);
    template.setExecMode(TaskDefinition.ExecMode.SYNC);
    template.setOwner("Configurator");
    TaskInstance task = _lhSess.runTask(template);                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to call business workflow in PI?

    Hi,gurus:
    How to call business workflow in PI and vice versa? Can I implement it using idoc adapter or RFC adapter?Or is it possible to expose the workflow to a web service?
    Any help will be appreciated.

    xinjiang li ,
    >is it possible to expose the workflow to a web service?
    Yes
    What is your actual requirement,
    Cheers
    Agasthuri

Maybe you are looking for