How to automatically start a workflow?

All,
I need to start a workflow item automatically based upon a table insert. I was hoping to use a trigger, but I could do it from within the application too.
I have a simple workflow itemtype defined in workflow builder. It has several attributes.
I found the pl/sql procedure of LaunchProcess which does
CreateProcess and StartProcess, so I guess I am to use this?
How/where do I populate the attribute values?
Thanks,
Tim

Hi Tim,
You set the attribute values by using the procedures
wf_engine.SetItemAttrText
wf_engine.SetItemAttrNumber
wf_engine.SetItemAttrDate
depending on the datatype of your attribute.
You may also wish to use the procedure
wf_engine.SetItemOwner
to indicate the role that owns the item you are launching.
Thanks,
Gavin

Similar Messages

  • IDE: automatic start of workflow for switch document

    Hello guys,
    Please, can someone tell me how do you automatically start the distributor workflow (WS20500195) without using SWUD transaction?
    I created the switch document ( switch view: distributor, switch type: end of supply), but the workflow won't start automatically, although is activated in SWE2 transaction.
    Thanks,
    Regards,
    Eduard M.

    Hello Anand,
    The workflows (distributor, new supplier, former supplier) were activated in SWE2 transaction.
    I also activated the triggering events from SWDD transaction for each workflow.
    Object type: ISUSWITCHD
    Event of the object: CREATED
    The thing is that after creating the switch document, I thought the workflow will start automatically (i mean after having customized the workflows in SPRO + SWE2 + SWDD).
    Anyway, thanks for your help.
    Best regards,

  • How to avoid starting of workflow ?

    hi there,
    i have a problem:
    on BO BUS2089 (Travel) i have a event 'CREATED'
    on that event i have a workflow. everytime the event is raised the workflow starts. so far so good, BUT:
    i ONLY want to start the workflow when the travel-request is created in portal (ESS).
    But there is a direct way in backup where traveling-requests are entered by administration.
    how can i handle this to avoid starting the workflow when it is done in backend system (HR) ?
    reg, Martin

    Martin,
    You should be able to identify the program that is triggering the event. Take a look into the SY-CPROG. I am not absolutely sure, if this is the correct field, but check/compare all the fields in SY structure. There should be a difference between creating/changing the trip in ESS (with the web dynpro application) and creating/changing the trip in backend transaction.
    If you can find the difference, it should be an easy task to prepare a check function module for the CREATED event to prevent the workflow starting in the specific circumstances.
    There are probably also other alternatives, but this is something you should definately check.
    Regards,
    Karri

  • How to re-start the workflow for Shopping carts in WAITING status

    Hi
    We are using 1-step approval work flow, and we get some strange issue. We can add approver in the workflow, but after we click order button and back to check status again, sometimes there will be "Ad-hoc agent not found" issue. Do you know how to solve?
    And one workaround for user is to re-add the approval, and sometimes the shopping cart back to normal. But sometimes, after we add the approver, the shopping cart are in waiting status:
    Workflow Item:
    Workitem-ID 000000714642
    Task WS10000276
    Text One-Step Approval: Value limit: Shopping Cart
    1000114698
    Status WAITING
    Statustext Waiting
    Date 13.06.2008
    Time 10:41:22
    So may I ask how to re-trigger the workflow?

    Hi,
    Thx for that. I need to trigger the Approval workflow to go the the approval manager.
    Can u give me the document on this? thx,  kerry.liu [at] ap.effem.com.
    Thx very much
    Kerry

  • How to automatically start postfix on boot?

    I often need postfix to send e-mail. To use postfix I need to start postfix everytime manually via the Terminal commandline.
    I would like to have postfix to be started automatically with booting.
    Is this possible in Mac OS X Snow Leopard? How can it be done?

    There is already an org.postfix.master.plist file in /System/Library/LaunchDaemons
    I had an old copy of Postfix Enabler from http://cutedgesystems.com/ but didn't appreciate having to buy a new program when Leopard came out, so I rolled my own. Here is my edited org.postfix.master.plist:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>Label</key>
    <string>org.postfix.master</string>
    <key>OnDemand</key>
    <false/>
    <key>Program</key>
    <string>/usr/libexec/postfix/master</string>
    <key>ProgramArguments</key>
    <array>
    <string>master</string>
    </array>
    <key>QueueDirectories</key>
    <array>
    <string>/var/spool/postfix/maildrop</string>
    </array>
    </dict>
    </plist>
    This will enable you to send mail. You can setup your Mac to receive mail too, but that is a bit more involved.

  • How to automatic start Microsoft VDI Clients on Windows Embedded Standard 7

    Greetings,
    I'm deploy Microsoft VDI for my customer, I use HP Thin Clients with Windows Embedded Standard 7.
    when we start the thin clients, we first open the thin client desktop, then open the RDP connetions, and input the ip address to access the virtual desktop.
    I think it's very complex for the end users.
    I want when we start the thin clients, it automatic connect to the VDI server, we just need to input the username and password to access the users' virtual desktops.
    does anybody know how to set it, or if there are some clients tools ?
    Thanks.
    Frank@Hiweb 冯立超@瀚博资讯

    Hi,
    If you work with mstsc.exe (Microsoft Remote Connection client for Windows), you can simply pre-configure a customized connection and save it as a .RDP file. Then, users can open the connection
    via double clicking the .RDP file.
    In addition, you can create a startup script to run the .RDP file.
    Thanks.
    Jeremy Wu
    TechNet Community Support

  • How to automatically start chapter on verso?

    Hi all,
    I'm finding it puzzling to figure this one out...
    I have a book document, and the first chapter ends on recto.
    The next chapter begins, automatically, on recto as well... I need to to start on verso.
    Odd thing is, one chapter in the book is behaving... but I can't figure out why.
    What setting controls this?
    thanks,
    Andrew

    When you say book dodument most of us see document and presume you are creating a book in one file, a common technique.
    Have you synchronized the numbering?
    When you go to Book Page Numbering Options from the Book panel flyout menu does the dialog look like this?
    When you check the Numbering and Section Options from the Pages panel flyout menu withe first page of your second (and subsequent) chapter(s) does the dialog look like this (your page numbers and chapter number will be different, but it must be set to automatic)?
    A failure of your pages to flow properly indicates a problem in one of these areas.

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

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

  • Start a Workflow in User-Exit RGGBS000

    How can I start a Workflow into the User Exit RGGBS000 for FI module?
    Regards,
    Ricardo

    I tried this FM, it isn´t starting.
    See:
    CALL FUNCTION 'SWW_WI_START_SIMPLE'
      EXPORTING
       CREATOR                            = 'ricardov'
       PRIORITY                           = '5'
        task                               = 'TS99900005'
      CALLED_IN_BACKGROUND               = ' '
      DEADLINE_DATA                      = ' '
      NO_DEADLINE_PARAMETERS             = ' '
    IMPORTING
      WI_ID                              = WI_ID
      WI_HEADER                          = WI_HEADER
      RETURN                             = RETURN
      WI_RESULT                          = WI_RESULT
      SWF_RETURN                         = SWF_RETURN
      TABLES
        agents                             = agents
      DEADLINE_AGENTS                    = DEADLINE_AGENTS
      DESIRED_END_AGENTS                 = DESIRED_END_AGENTS
      LATEST_START_AGENTS                = LATEST_START_AGENTS
      EXCLUDED_AGENTS                    = EXCLUDED_AGENTS
      NOTIFICATION_AGENTS                = NOTIFICATION_AGENTS
      SECONDARY_METHODS                  = SECONDARY_METHODS
      WI_CONTAINER                       = WI_CONTAINER
    CHANGING
      WI_CONTAINER_HANDLE                = WI_CONTAINER_HANDLE
    EXCEPTIONS
      ID_NOT_CREATED                     = 1
      READ_FAILED                        = 2
      IMMEDIATE_START_NOT_POSSIBLE       = 3
      EXECUTION_FAILED                   = 4
      INVALID_STATUS                     = 5
      OTHERS                             = 6
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Is there something more to put???
    Thanks
    Ricardo

  • Starting my workflow

    Hi,
    Would like to know how I can start my workflow after a processformrequest. For example, I would like to start a workflow after the user clicks the apply button.
    Cheers

    Use the methods in the class
    oracle.apps.fnd.framework.webui.OANavigation
    This calss provides Java wrappers for Oracle Workflow Engine's PL/SQL APIs.
    hope this helps
    Srini

  • How to start a Workflow automatically

    Hello Friends,
    I'm new to SharePoint Designer and facing some challenges to do it. Please help me on this.
    My requirement is to send an automated email notification to an user when a specific document is created/modified in a particular folder. The document will come to SharePoint through emails (NOT by manual upload).
    Remember: This workflow works fine when we upload the document manually to the folder. But If I send the document to the SharePoint through an email (I've enabled "incoming email" setting for the folder. So that people can sent
    the document to the SharePoint) the workflow is NOT triggering.
    Below are the steps I followed
    1. I've created a list workflow and selected the folder name where the document will be saved. Let's say "File Received" is the folder name in my SharePoint and "Test File.docx" is the file that will
    saved in this folder.
    2. In the condition I wrote if current item Name contains "Test File" and in action I've created an email task
    3. and finally in start option I've checked start workflow automatically when an item is created/modified.
    This workflow is working perfectly when someone upload the document (i.e. Test File.docx). But when someone sent the same document though an email to this SharePoint, the document is saved in SP but the workflow is not triggering. 
    Any suggestion/help is really appreciable.
    version: SPD 2010
    Thanks! -Sandip

    Hi Sandeep,
    Please check this article for step by step implementation
    http://social.technet.microsoft.com/wiki/contents/articles/4607.sharepoint-2010-workflows-on-incoming-emails-in-sharepoint-documents-library.aspx
    http://sharepoint.stackexchange.com/questions/6713/how-can-i-make-a-workflow-automatically-start-when-an-email-is-received
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Collect comments on automatic start of reusable workflow

    I want to start a workflow automatically, how can I collect  "comments" (multiple lines of text) metadata from users when they are checking in a document, that should be collected by the workflow?

    Hi mikello,
    According to your post, my understanding is that you want to create a workflow to automatically get the comments when the users check in the documents.
    First, you should know there is a column named “Check In Comment” to record the comments when the users check in the documents.
    Then, you can modify view to display the “Check In Comment” column’s value in the document library.
    If you want to record the changes of the “Check In Comment” column’s value automatically, I recommend that you can follow the steps as below to implement it.
    Open the document library in your site, create a “Single line of text” type column named “Comment1” to record the “Check In Comment” column’s value.
    Open SharePoint Designer 2010, create a list workflow associated with the document library, add some conditions and actions as below:
     3.  Go to “Start Options”, check “Start workflow automatically when an item is created” and “Start workflow automatically when an item is changed”.
     4.  Publish the workflow and test whether it works in your environment.
    The result is shown as below:
    When you add a new document in the document library, you need to leave the “Comment1” column’s value empty.
    Then, the workflow will automatically be executed and set the “Comment1” column’s value equals to the “Check In Comment” column’s value like “ID;#Check In Comment”.
    And, when you check out the document and check in the document with comments, the workflow will automatically be executed and judge if the current “Check In Comment” column’s value equals to the current “Comment1” column.
    If they are equal, the workflow will log “Comment not change~!” and the current “Check In Comment” column’s value.
    If they are not equal, the workflow will log “Comment change~!” and the current “Check In Comment” column’s value, set the current “Comment1” column’s value equals to the current “Check In Comment” column’s value.
    Best Regards,
    Yumi Fu

  • How can I disable iPhoto from automatically starting when I connect my iPhone?

    Whenever I connect my iPhone to my Mac it automatically starts iPhoto?  How can I make this not happen?

    Go into iPhoto's General preference pane and set the Connecting camera opens to No Application:
    OT

  • How can i disable imessage from automatically starting up when i turn on macbook air?

    how can i disable imessage from automatically starting up when i turn on macbook air? i dont know my imessages to pop up on my laptop when it turns on. But i dont want to disable imessage totally on my macbook.

    Welcome to the Apple Support Communities
    First of all, check that Messages is closed when you turn off your MacBook. This is so important because, by default, OS X will reopen all opened apps the next time you start your Mac.
    Apart from that, when you go to  > Shut Down, or  > Restart, in the window you see to restart or turn off your MacBook, unmark "Reopen windows when logging back in". This will avoid that your Mac opens all opened apps the next time you start the MacBook, so Messages won't start automatically at startup

Maybe you are looking for