Call workflow

Hi,
Can i call workflow or task from dynPro application is there any function module for that.
Please help me

Please look at using this class
oracle.apps.fnd.framework.webui.OANavigation
This class provides Java wrappers for Oracle Workflow Engine's PL/SQL APIs.
There are methods like startProcess and createProcess in this class.
Let me know if this works.
Thanks,
Tapash

Similar Messages

  • Error while calling Workflow APIs remotely

    I have standalone workflow engine. I have created views and workflow packages in another databases. These packages are calling workflow APIs internally using DB Link. I call these packages inside Powerbuilder. I start process from the PowerBuilder, process started successfully. User responded to the notification by logging into powerbuilder, it is also successful.
    But when user responds to last notification to END the process, I am getting following error:
    ORA-02074: cannot ROLLBACK in a distributed transaction
    ORA-06512: at "OWF_MGR.WF_ENGINE_UTIL", line 1263
    ORA-02074: cannot SET SAVEPOINT in a distributed transaction
    Is it wrong to call Workflow APIs remotely ? Any solution ?
    Regards

    Hi,
    I think, we had the same problem and was resolved by the following approach:
    1. define the external function call within one transaction unit...can use pragma.
    2. commit the transaction and then close the DB link using alter session....
    Suprabhat.

  • Sample RFC Enabled FM to call workflow

    Hi Guys,
          I would like to know any sample RFC Enabled FM for calling Workflow and to initiate it.
    Thanks & Regards,
    ABAPer

    Hello Joseph
    You may have a look at fm SWU_START_WORKFLOW.
    Regards
      Uwe

  • ISupplier Portal call Workflow - Issue Closed,thanks ~

    Hi All,
    In iSupplier Portal, it will call Workflow to send a notification for notifying buyers about the registration of supplier.
    We can see the workflow process set(named: POSSPM1 : POS Supplier Registration and Profile Management) using Workflow Builder.
    We are able to create a copy of a specific process and then modify the notification message, save as a new process.
    BUT, we can't find where to setup the workflow to using the new process.
    Is there any setting can help us to use the new process?
    Or the process name is hard-code in OAF controller program??
    Thanks in advance.
    Any suggestion will be appreciated.
    Best regards,
    Zhxiang
    Message was edited by:
    zhxiangxie

    Hi Zhxiang,
    We have raised a new thread which is similar to your requirement. Can you please answer our question ?
    Thread link:
    iSupplier Portal work flow issue
    Thread name: "iSupplier Portal work flow issue"
    under Forum Home » E-Business Suite » EBS General Discussion .
    Thanks in advance.
    Regards,
    S.K.

  • Calling workflow in workflow

    Hi
    Any body is having an idea on calling workflow inside a workflow in sup 2.0.1

    Hello Usharohan,
    Can you elaborate the requirement.
    A local workflow step type can help you. But this will work only for the same instance of the workflow.
    If you need to connect two different workflow templates, then you can code in the BO method using the FM " SWE_EVENT_CREATE " and link it to the BO and then the workflow template.
    Thanks,
    Krishna

  • Call workflow from ABAP program

    created a zbusiness object (ZPRODH)with
    one key field product hierarchy,
    one attribute level number and
    one method display.
    I tested that zobject and using this object created workflow to display product hierarchy ,it is displaying it. now I have to call it from one abap program.
    In the abap program I am calling the funcion module, I
    CALL FUNCTION 'SWW_WI_START_SIMPLE'
    EXPORTING
    TASK = TASK
    IMPORTING
    WI_ID = WI_ID
    TABLES
    AGENTS = AGENTS
    WI_CONTAINER = WI_CONTAINER.
    It is calling the workflow and subrc is 0, but not passing the value to the workflow. Because of that the method is not working, any idea?
    Thanks in advance

    ttpa,
    Please check this thread:
    Re: Workflow from abap program
    Also check that your Fm do requires any explicit commit or not?
    Hope it will help u
    Cheers
    Jai

  • How to call workflow api in procedure?

    I created a process in workflow,i call CreateProcess to starting from my procedure.But when i call the procedure in sqlplus i got a error message.That is ,ORA-20002: 3114: activity 'XTes/tes1' is not a process.
    Is there something wrong when i call CreateProcess in procedure?

    -make sure that you use the internal name of the item type and the process as
    defined in the workflow builder.
    -is your workflow definition successfully saved in the database?
    Lieven

  • Hi There, Any one Know How To Call Workflow Process From Special Menu.

    Hi There,
    Any one Know How To Call Oracle Workflow Process From Special Menu.
    I mean Tool -> Special Menu 1-45
    Or How to call Oracle Workflow Process From Command Button.
    Thanks
    Bachan.

    Can u give me some examples.
    Second thing we can add special action (special Menus) from Form Personaliztion.
    But how to add launch wft through Personalization
    Please Give me a breaf detail.
    Thanks
    Bachan

  • Calling Workflow background process' explicitly in pl/sql code

    Hi All,
    We have a requirement where we have to call the 'Workflow background process' explicitly in pl/sql code.
    What we want is that we are having some request that runs via a concurrent program, but before that request completes we want to put that on wait and run the 'Workflow background process' explicitly in the code itself (user need not go and manually run it).
    Can anyone please advice me how do I do this in a PL/SQL code that is called via a concurrent program.
    Regards,
    Shruti

    Pl post details of OS, database and EBS versions.
    One option is to use the FND_SUBMIT API
    Most Commonly Used FND APIs in APPS Customizations [ID 221549.1]
    Sample Code to Call Customer Interface RACUST Program using FND_SUBMIT Api in 11i and R12 [ID 429278.1]
    https://forums.oracle.com/forums/search.jspa?threadID=&q=FND_SUBMIT&objID=c3&dateRange=all&userID=&numResults=15
    HTH
    Srini

  • Procedure to Call Workflow Object from ABAP program in Se38

    Hi All,
    I have one scenario like i have to call one Workflow object from ABAP program in SE38.The scenario is like below.....
    I have to select some records from database table.For example there are 100 records in the internal table.
    For all that records i have to invoke Workflow for getting approval from the authorized persons. Once Approval has come to program, It will post one document in SAP and process ends.
    Please suggest me how to move forward with this scenario.
    Regards
    Manas Ranjan Panda

    Hi,
    So you want to start a workflow from an ABAP, if an event exists for that particular workflow then the best way is to use fm SAP_WAPI_CREATE_EVENT,
    to start a workflow from an ABAP you can use fm SAP_WAPI_START_WORKFLOW.
    Kind regards, Rob Dielemans

  • Calling workflow from java(1.4)

    Hi All,
    I have a scenario in which the request status comes from outside SUN IDM (7.1) and is forwarded to IDM via a Java class which in turn calls the related On Hold workflow.
    The code has a bug as it calls all the workflows while trying to isolate (filter) out the particular WorkFlow.
    Could any one suggest how to isolate the particular workFlow using java(1.4) ?
    Currently the code is like this :
    {color:#0000ff}AttributeCondition executedTaskFilter = new AttributeCondition({color}
    {color:#0000ff}Attribute.+PROCESS+,{color}
    {color:#0000ff}com.waveset.object.AttributeCondition.Operator.+EQ+,{color}
    {color:#0000ff}"abc approval Workflow");
    {color}{color:#000000}Thanks in Advance
    Bislerinow{color}

    [ JasperReports 3.0.0|http://www.jasperforge.org/index.php?option=com_joomlaboard&Itemid=&func=view&catid=9&id=42461#42461]
    Looks like something is still using SDK 1.4 or eclipse is set to compile to 1.4 compliance.

  • Call workflow from Java

    Hi all,
    Does anybody know how to launch a workflow in Java ?
    For example I'd like to call the "Create Resource Group" in a jsp file.
    Any clue ?
    Thanks a lot,
    Ben

    This guy's done it in Xpress: [http://woogie.net/node/37]
    That means you should be able to break down the Xpress invoke commands into regular Java. I'm just too lazy to do it for you. :)
    In case the page goes away here's the code:
    {noformat}<Rule name=<span class="code-quote">"runTask">
        <RuleArgument name='taskName'/>
        <RuleArgument name='taskVariables'/>
        <RuleArgument name='execMode'/>
        <block>
            <defvar name='processView'>
                <<span class="code-keyword">new class='com.waveset.object.GenericObject'>
                    <ref>taskVariables</ref>
                </<span class="code-keyword">new>
            </defvar>
            <invoke name='setId'>
                <ref>processView</ref>
                <s><span class="code-object">Process</s>
            </invoke>
            <invoke name='put'>
                <ref>processView</ref>
                <s>task.process</s>
                <ref>taskName</ref>
            </invoke>
            <invoke name='put'>
                <ref>processView</ref>
                <s>task.taskName</s>
                <ref>taskName</ref>
            </invoke>
            <cond>
                <ref>execMode</ref>
                <invoke name='put'>
                    <ref>processView</ref>
                    <s>task.execMode</s>
                    <ref>execMode</ref>
                </invoke>
            </cond>
            <invoke name='checkinView'>
                <rule name='getCallerSession'/>
                <ref>processView</ref>
                <<span class="code-keyword">null/>
            </invoke>
        </block>
    </Rule>
    {noformat}

  • Calling workflow from a form

    I need to call a workflow in the QuestionLibrary form so that I can save the question and answer in another external resource, after the user modifies the answer to the question.
    Other option is to create a complete workflow to replace the change question answer link and manipulate the custom-form.
    How do I call a workflow in a form.
    Any help is appreciated.

    I created a Form which sends values to a W/F. I logged as myconfig & I used a Submit button to call a specified Workflow.
    But when I tried this user/processLaunch.jsp?id=NewWF It redirects to the homepage of user Login
    http://localhost:8080/idm/user/login.jsp?nextPage=user%2FprocessLaunch.jsp%3Fid%3DNewWFx
    Here is my Button code
    <Field name='Save' button='true'>
    <Display class='Button'>
    <Property name='command' value='Save'/>
    <Property name='name' value='Save Process'/>
    <Property name='postURL' value='user/processLaunch.jsp?id=NewWF'/>
    <Property name='value' value='Save Process'/>
    </Display>
    </Field>
    I added the Workflow to the End User Tasks but still unable to call
    <Configuration id='#ID#Configuration:EndUserTasks' name='End User Tasks'>
    <Extension>
    <List>
    <String>NewWF</String>
    </List>
    </Extension>
    <MemberObjectGroups>
    <ObjectRef type='ObjectGroup' id='#ID#Top' name='Top'/>
    </MemberObjectGroups>
    </Configuration>
    Is there any mistake in my code.
    Thanks in Advance

  • API to call Workflow

    Hi,
    I am looking for an API that can be called from a Java Class/PL SQL function or procedure. And I would also pass some message/parameters from my Java Class/PLSQL function that should be received in the Workflow process.
    Thanks!
    Shalu

    Shalu,
    The Workflow public APIs are described in the Workflow Guide. Please see:
    Oracle Workflow Procedures and Functions
    http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/workflow.920/a95265/wfapi.htm#apis
    In particular, take a look at the Workflow Engine APIs:
    http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/workflow.920/a95265/wfapi13.htm#eng_api
    The setItemAttrText/Number/Date APIs let you set parameters for a workflow process in the form of item type attributes.
    There are both Java and PL/SQL APIs.
    http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/workflow.920/a95265/wfapi29.htm#a_setp
    Regards,
    Clara
    Hi,
    I am looking for an API that can be called from a Java Class/PL SQL function or procedure. And I would also pass some message/parameters from my Java Class/PLSQL function that should be received in the Workflow process.
    Thanks!
    Shalu

  • Why we cannot commit inside BAPI and what if we call workflow inside BAPI?

    hi,
    can anyone tell me why we cannot use Commit statement inside BAPI ?
    Also what if in my BAPI ,i have triggered my workflow and through that can i commit??
    Regards,
    Mayank

    Hi,
    it is a part of the BAPI programming model that BAPIs use a certain transaction model. This transaction model says that one BAPI has to follow the so called ACID (atomar, consistent, isolated, durable) principle. To ensure that a BAPI is atomar you cannot put a commit work just anywhere in mid of a BAPI as this would violate the modell. Furthermore BAPIs shall allow external commit handling that means it has to be possible to include several BAPI calls in one LUW. For this there are BAPIs which are only for committing or rolling back a transaction. For more detailed information you can check as usual the SAP help [click me|http://help.sap.com/saphelp_nw04/helpdata/EN/a5/3ec8654ac011d1894e0000e829fbbd/frameset.htm]
    If would suppose that when you throw a workflow event it is triggered once the LUW is closed. At least SAP should work that way. But I have to admit in newer ABAP OO developments SAP often just calls the Event raising function module with the option to not wait for the DB commit. Seems there are some problems with the newer LUW concepts / OO and the old workflow technology. This can lead in worst case to events raised for objects which were rolled back later but SAP seems to accept that so it is in my oppinion an acceptable solution.
    Hope that helps a bit
    Roman

Maybe you are looking for