Starting BPM process instance automatically

In our process we would like to read the Oracle staging table and start the instance(s). We want this to happen every hour or so automatically.
We looked into documentation for starting the instances. Looks like there are only two ways, one is through global creation activity, we don?t want to use this approach since it is manual trigger, the second one is API initiate. I couldn't find any documentation on this approch. Some one please point me to right document or suggest me better approach.
Thanks,

You can use Global Automatic activities. This kind of activities
tipically run when a time is timeframe is reached (for example, every
hour) or you can make them to be trigger by some event, like a JMS Message.
NMS Reddy wrote:
In our process we would like to read the Oracle staging table and start the instance(s). We want this to happen every hour or so automatically.
We looked into documentation for starting the instances. Looks like there are only two ways, one is through global creation activity, we don?t want to use this approach since it is manual trigger, the second one is API initiate. I couldn't find any documentation on this approch. Some one please point me to right document or suggest me better approach.
Thanks,

Similar Messages

  • BPM Process Instance Id

    Guys,
    I'm expecting BPM process instance id to be in progressive sequence.. But it is not.
    I created an instance at 10 am , id is 120074
    Then i created an instance at 11 am on the same day, id is 110089.
    Is this possible? Do anyone knows how it works?
    Thanks in advance....

    There is a range size setting named InstanceKeyBlockSize     at the BPELConfig:bpal MBean which drives the range of IDs each managed server gets hold of. The default for this is 10000.
    When the servers start they pick their ids reading the next block from ID_RANGE table and updates the table for next availabe range.
    Say you have 2 nodes , one holds keys from 10000 to 19999 and the other holds from 20000 to 29999 , depending which node you are on you get the next instance id from that pool.
    This expalains why one process has an Id starting with 120*** and the other with 110***

  • How to start BPM process WSDL from WDA

    Hello,
    I need to start BPM Process from SRM ECC with WDA; i have been through this link ;
    http://forums.sdn.sap.com/thread.jspa?threadID=1643425
    also followed the pdf named 'Triggering NetWeaver BPM Process from ABAP' provided from SAP but still stuck on some issues;
    - I have a WSDL in order to start BPM process and works fine as i successfully call it from EP Java AS with WDJ..
    - What i need to do is to trigg it from SRM Screens so i need to call this WSD from ECC, so;
        When i try to create a consumer proxy using external wsdl option, after putting in WSDL Url it throws an error;
    Exception occurred in communication framework:Error in HTTP Framework:405 Method Not Allowed http://xxx.local:50000/bpm/de
    mosapcom/dccategoryappbpm/StartCatAppSI
    Exception of class CX_SLIB_HTTP_FAIL
    And this is error from BPM Logs for the same action;
    process()
    [EXCEPTION]
    com.sap.engine.interfaces.webservices.runtime.RuntimeProcessException: com.sap.engine.services.webservices.espbase.server.additions.wsa.WSAddressingException: com.sap.SOA.wsr.030104 - Expected request method POST. Found GET.
    at com.sap.engine.services.webservices.espbase.server.additions.SOAPHTTPTransportBinding.getAction(SOAPHTTPTransportBinding.java:581)
    at com.sap.engine.services.webservices.espbase.server.runtime.RuntimeProcessingEnvironment.overwriteConfiguration(RuntimeProcessingEnvironment.java:894)
    at com.sap.engine.services.webservices.espbase.server.runtime.RuntimeProcessingEnvironment.preProcess(RuntimeProcessingEnvironment.java:469)
    Also i found this link : http://wiki.sdn.sap.com/wiki/display/TechTSG/(WSR)Problems-P06/
    But no help so far,
    So, is there anyone faced similar or the same issue? Any suggestion will be appreciated.
    Regards,
    Yasin

    Hi soujanya,
    BPM server is not open to the internet but only intranet, so i will copy the WSDL code for you,
    will be glad if you can help;
    - <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://www.koczer.com/StartCatAppSI/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="StartCatAppSI" targetNamespace="http://www.koczer.com/StartCatAppSI/">
    - <wsdl:types>
    - <xsd:schema targetNamespace="http://www.koczer.com/StartCatAppSI/">
    - <xsd:complexType name="DetailsType">
    - <xsd:sequence>
      <xsd:element name="Category_ID" type="xsd:int" />
      <xsd:element name="Category_Text" type="xsd:string" />
      <xsd:element name="User" type="xsd:string" />
      <xsd:element name="Manager" type="xsd:string" />
      </xsd:sequence>
      </xsd:complexType>
    - <xsd:element name="NewOperation">
    - <xsd:complexType>
    - <xsd:sequence>
      <xsd:element name="Details" type="tns:DetailsType" />
      </xsd:sequence>
      </xsd:complexType>
      </xsd:element>
      </xsd:schema>
      </wsdl:types>
    - <wsdl:message name="NewOperationRequest">
      <wsdl:part element="tns:NewOperation" name="parameters" />
      </wsdl:message>
    - <wsdl:portType name="StartCatAppSI">
    - <wsdl:operation name="NewOperation">
      <wsdl:input message="tns:NewOperationRequest" />
      </wsdl:operation>
      </wsdl:portType>
    - <wsdl:binding name="StartCatAppSISOAP" type="tns:StartCatAppSI">
      <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
    - <wsdl:operation name="NewOperation">
      <soap:operation soapAction="http://www.koczer.com/StartCatAppSI/NewOperation" />
    - <wsdl:input>
      <soap:body use="literal" />
      </wsdl:input>
      </wsdl:operation>
      </wsdl:binding>
    - <wsdl:service name="StartCatAppSI">
    - <wsdl:port binding="tns:StartCatAppSISOAP" name="StartCatAppSISOAP">
      <soap:address location="http://zerbpmts.koczer.local:50000/bpm/demosapcom/dccategoryappbpm/StartCatAppSI" />
      </wsdl:port>
      </wsdl:service>
      </wsdl:definitions>

  • Start bpm process with attachment or note

    Hi All
    Is there any way to start BPM process and add attachment or note to it.
    My client requirement is that when the process is started requester should be able to add file or note.
    This note or file should be visible in UWL task (in section attachments or notes)
    Is there any way to do it using standard.
    I know that I can store note in context of BPM process but customer is really pushing for standard.
    Regards

    Not sure if the requester is in BPM or outside BPM.
    You can do this by keeping requester in BPM i.e. trigger BPM and give requester a task. (Dont think its preferred design).
    In UWL you can let user add a memo or attachment... Refer below doc
    SAP NetWeaver Business Process Management Resource Center
    -Abhijeet
    Edited by: Abhijeet on Dec 10, 2011 5:21 AM

  • Show information for BPM process instances to possible future assignees

    Hi all,
    My environment is 11.1.1.4.
    I want to develop an ADF application that shows users information for BPM process instances which will possibly produce a user task assigned to them in the future.
    What I have done is
    1. Get BPMAppRole from the user name.
    2. Get the list of CompositeInstance with STATE_RUNNING from the BPM process name obtained from the BPMAppRole.getName().
    From the list of CompositeInstance, I have to extract the instances that will possibly produce a user task assigned to the user in the future.
    But I have no idea how to do this.
    Maybe my current approach is totally incorrect.
    Please help!
    Regards,
    Kenji

    Hi,
    By chance I found a method that you can use:
    oracle.bpel.services.workflow.query.model.TaskSequence getTaskSequence(oracle.bpel.services.workflow.verification.IWorkflowContext p1, oracle.bpel.services.workflow.task.model.Task p2, java.util.List p3, java.util.List p4, java.util.List p5, boolean p6) { }
    getTaskSequence might help you. This is under ITaskQueryService interface.
    HTH.

  • Starting an SSL instance automatically

    Hello,
    how is it possible to automatically start the ssl instance, version 7.0.12 ?
    # svcadm enable https-webdesk
    # svcs -a|grep http
    maintenance 8:57:42 svc:/network/http:https-webdesk
    +# tail -f network-http:https-webdesk.log+
    +.+
    +.+
    +[ Nov 18 08:57:39 Enabled. ]+
    +[ Nov 18 08:57:40 Executing start method (""/opt/webserver7/https-webdesk/bin/startserv"") ]+
    Oracle iPlanet Web Server 7.0.12 B07/04/2011 12:06
    failure: end-of-file while reading password
    failure: end-of-file while reading password
    failure: end-of-file while reading password
    failure: CORE1227: NSS PKCS #11 initialization failed (SEC_ERROR_BAD_PASSWORD: Security password entered is incorrect.)
    failure: server initialization failed
    As in v6.1, I modied the start script the same way, but it doesn't work anymore.
    # cat /opt/webserver7/https-webdesk/bin/startserv
    case $COMMAND in
    --start|-start)
    +${SERVER_BIN} -d "${SERVER_CONFIG_DIR}" -r "${SERVER_INSTALL_ROOT}" -t "${SERVER_TEMP_DIR}" -u "${SERVER_USER}" -s ${SERVER_BIN} -d "${SERVER_CONFIG_DIR}" -r "${SERVER_INSTALL_ROOT}" -t "${SERVER_TEMP_DIR}" -u "${SERVER_USER}" -s "${SERVER_SVC_START_CMD}" $@ *< /opt/webserver7/https-webdesk/secret/pass*
    any ideas?
    The password is definitely correct.
    I want to start the ssl instance automatically during boot.
    -- Nick

    ok I read the docs, but it's still not clear to me.
    I edit server.xml
    <pkcs11>
    <enabled>true</enabled>
    <crl-files>???</crl-files>
    <token>
    <enabled>true</enabled>
    <name>???</name>
    </token>
    </pkcs11>
    ??? ... not sure
    /opt/webserver7/https-webdesk/config/secret/password.conf
    whatever I test, I get
    # /opt/webserver7/https-webdesk # bin/startserv -configtest
    Oracle iPlanet Web Server 7.0.12 B07/04/2011 12:06
    [23/Nov/2011:12:15:10] info ( 6824): CORE1116: Oracle iPlanet Web Server 7.0.12 B07/04/2011 12:06
    warning: wl-init reports: missing parameter 'Debug', will use default
    warning: wl-init reports: missing parameter 'WLLogFile', will use default
    warning: wl-init reports: missing parameter 'WLTempDir', will use default
    info: wl-init reports: Debug is disabled [(null)]
    info: wl-init reports: BEA plugin build date/time: Apr 18 2008 11:33:05. Change Number: 1110533
    failure: CORE1227: NSS PKCS #11 initialization failed (SEC_ERROR_BAD_PASSWORD: Security password entered is incorrect.)
    thank you.
    -- nick

  • Start BPM process automatically

    Hi ALL,
    I have created a BPM process. I can start that process automatically from nwa -> Process controll.
    But I want to run the process automatically by a certain time interval. How can I do it.
    Can anybody help me.
    Thanks in advance
    Chandan

    Hi Chandan,
    I am not 100% sure if I understood you correctly, but with BPMN there comes a model element named Intermediate Timer Event which can be configured in two different ways using:
    an offset (e.g. 1 hour after the timer has been created)
    an expression  (e.g. ProcessContext.aDateOneEntered + 1 day)
    Nevertheless this still requires you to start the process by yourself, but it 'waits' at the timer until the offset or the expression has been reached. Thereby you can achieve that an interval is taken into account upon execution of the process.
    More information about events can be found in the documentation:
    Modeling Events
    https://help.sap.com/saphelp_nwce711/helpdata/en/47/61470236013df6e10000000a42189b/frameset.htm
    Hope that helps,
    Martin

  • Initiating BPM Process Instances from External Web Service Call

    I'm attempting to update the HelloWorld example so that I can create an instance of the process from an External Web Services Call rather than via the Workspace. Our current SOA Architecture is configured so that all BPM instances are managed through a .NET SmartClient via the Service Bus and the use of PAPI W/S and so I'm wishing to recreate this capability in the new BPM.
    I understand the replacement for PAPI W/S is Human Workflow so I've therefore updated and republished the HelloWorld Example with an Exposed 'TaskService' Service for the Human Task within the BPM Process.
    I've then attempted to reference the TaskService through our existing BPM, and have been able to import a number of generic WSDL's as follows:
    Task Service
    http://vmaquatestapp2:7001/integration/services/TaskService/TaskServicePort?WSDL
    Task Metadata Service
    http://vmaquatestapp2:7001/integration/services/TaskMetadataService/TaskMetadataServicePort?WSDL
    Task Query Service
    http://vmaquatestapp2:7001/integration/services/TaskQueryService/TaskQueryService?WSDL
    When I examine the available operations for these generic services, there are quite a lot, each of which have a fairly complex schema. I believe I should be using the TaskService: InitiateTask Operation to create an instance of my BPM Process but my questions are:
    - Is the above the correct method of interacting with BPM Instances from an external system such as the Service Bus?
    - Does anyone have any examples of a basic XML payload that would initiate a process instance?

    I created an process with a message start event and can call it from an external web service call. I can also pass input arguments and map those to process data objects. However I can not find how to return data as response to the external web service call as e.g. the process instance id.
    Is it possible to this?
    Gr,
    Gert Jan Kersten

  • How to Terminate the BPM Process instance

    Hi,
    If I have an instance of bpm process which fault at the database service task, I want to manually terminate or suspend it. I tried to do it in the workspace as an bpm administrator, however, since the instance pass the human task already, so that i can't suspend the instance. On the enterprise manager console, I don't see any way to terminate one instance. Please advise and it is so important and urgent for me, since our bpm project already on prodction, we have to fix it as soon as possible. Thanks in advance

    I'm thinking you're asking what you can do with an instance that has an uncaught exception and not how to have modeled it so they can be properly handled. If you're not catching the exception, in any of the 7 techniques listed below - you're kind of stuck.
    If you have a service task and you'd like to handle the exception (manually or other), you have the choices listed below. If you are using none of these, then you're allowing the BPMN engine to handle the exception and about all you can do is to delete the instance in Enterprise Manager.
    1) You could add a catch error event to the boundary of the Service task and have that event designated to handle the exception thrown. From the boundary event, you might have a sequence flow to an Interactive activity that lets you hande the exception. Once handled, the instance can continue on with the process.
    2) You could add an event subprocess in the same process as the Service activity that has a start error event and have that event designated to handle the exception thrown. From the event subprocess, you might have a sequence flow to an Interactive activity that lets you hande the exception. The difference between this scenario and the first is that the instance in the process has to terminate in the end event in the event subprocess.
    3) If your process is invoked as an embedded subprocess, you could add a boundary event (1 above) or catch it in an event subprocess (2 above).
    4) If your process is a reusable process invoked from a parent process using a Call activity, if the exception isn't caught inside the called subprocess you could add a boundary event to the Call activity in the parent process. This is similiar to 1 above and you'd need a sequence flow comingin out of the boundary catch error event on the Call activity to go somewhere in the process to handle the exception.
    5) If your process is a reusable process invoked from a parent process using a Call activity, if the exception isn't caught inside the called subprocess and it is not caught by a boundary error event on the parent's call activity then you could add an event subprocess in the parent process that has a start error event and have that event designated to handle the exception thrown inside the child process.
    6) There is a way to handle exceptions thrown inside a peer process but I'm guessing that might be too much for this post.
    7) You can handle exceptions using a Policy outside of the processes. Rather than using the above to handle exceptions, you could use policy based exception handling where you give the policy the different types of faults you want to catch and if you want to retry, let it be handled by someone in Enterprise Manager and if you just want to abort the instance.
    If the exception is not caught, then you're in the scenario you're in now and the BPMN engine is where it is unfortunately caught. Although you can see it, it is a non-recoverable exception and about all you can do is delete the instance in Enterprise Manager.
    Hope this helps,
    Dan

  • How to start BPM Process in Netweaver CE 7.1 from backend

    Hi,
    since 2 Month i am trying to use SAP Netweaver CE 7.1 EHP1. I found a lot about modelling of business process with process composer.
    In my company we are often using SAP Standard Programs/transaktions, thats why I want to start a SAP Netweaver BPM Process from SAP Backend. I think there are more than one way. May be someone can tel me one easy way.
    The following systems are available in my Landascape:
    - PI 7.1
    - ERP 2005
    - CE 7.1 EHP1 with ESR
    Does someone have an idea how to start the BPM Process or how to trigger start event from Backend?
    Greetings,
    Manuel

    Hi,
    Netweaver BPM process can be started in two ways:
    1. Using NWA by instantiating a process
    2. Using a Web service which trigers the Start event of the Business Process. You may find this useful:
    /people/arafat.farooqui/blog/2009/08/13/introduction-to-sap-netweaver-bpm-part-4
    Hope this helps!!
    Regards,
    Arafat

  • How to start BPM Process in Netweaver CE 7.1

    Hi,
    since 2 Month i am trying to use SAP Netweaver CE 7.1 EHP1. I found a lot about modelling of business process with process composer.
    In my company we are often using SAP Standard Programs/transaktions, thats why I want to start a SAP Netweaver BPM Process from SAP Backend. I think there are more than one way. May be someone can tel me one easy way.
    The following systems are available in my Landascape:
    - PI 7.1
    - ERP 2005
    - CE 7.1 EHP1 with ESR
    Does someone have an idea how to start the BPM Process or how to trigger start event from Backend?
    Greetings,
    Manuel

    Hi,
    Netweaver BPM process can be started in two ways:
    1. Using NWA by instantiating a process
    2. Using a Web service which trigers the Start event of the Business Process. You may find this useful:
    /people/arafat.farooqui/blog/2009/08/13/introduction-to-sap-netweaver-bpm-part-4
    Hope this helps!!
    Regards,
    Arafat

  • Error starting BPM process in CE 7.2

    Hi Guys,
    I created a BPM process and deployed it on CE 7.2 server. When I try to start it from  Process Repository , I get following error.
    com.sap.tc.bpem.wdui.procstarter.procstarter.comp.ProcStarterComp$MyException: Error :Start event ID is null; Check if the necessary services are started
    Start Event and end event are defined.
    Any idea what this error is about.
    Thanks,
    Yomesh

    hi,
    how about other bpm process?
    if all are like this, you have to check the bpm service.
    Best regards,
    John

  • Start BPM process from ABAP report. Need some investigations.

    Hi there!
    I have to start a BPM process from ABAP report. I found an article http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10d75b45-7fef-2b10-bc8e-c6012e0a9457?QuickLink=index&overridelayout=true and have done everything it describes but the process doesn't start.
    What I've done:
    1) Created a service proxy in SE80.
    2) Created a logical port in SOAMANAGER.
    3) Write a code to start a WebService in ABAP Report.
    But when I start a program nothing happens, no errors.
    What analysis I did:
    1) See logs and traces in SOAMANAGER - there is nothing appears after I start the report.
    2) Tried to test connection to my WebService in SM59 - the connection works, but it use a POST method instead of GET:
      Error: com.sap.engine.services.webservices.espbase.server.additions.wsa.WSAddressingException: com.sap.SOA.wsr.030104 - Expected request method POST. Found GET.
    But I think it is OK and from the report it use a right method.
    3) Tried to delete a logical port - the error of communication problem appears. So it means that all settings are right.
    4) No logs in NWA logs
    My thoughts - if there is not any errors and no result, it can be because the user authorization. E.g. it tried to start a process by a user who doesn't have SAP_BPM_SuperAdmin role. But I can't find a way how to check what really happens. So I want to ask for a help, colleagues:).

    Dear Kirill Zhuklinets,
    Can you share your solution as i am facing the same error while trying to consume BPM webservice from SRM ECC
    Error Message from SRM ECC :
    Exception occurred in communication framework:Error in HTTP Framework:405Method Not Allowed
    Log from BPM Web service
    Error: process()
    [EXCEPTION]
    com.sap.engine.interfaces.webservices.runtime.RuntimeProcessException: com.sap.engine.services.webservices.espbase.server.additions.wsa.WSAddressingException: com.sap.SOA.wsr.030104 - Expected request method POST. Found GET.
    Please share your solution..
    Regards,
    Yasin

  • Cannot start BPM process, "Start process" button is disabled: Why?

    Dear all,
    I am working on the BPM example "Modeling Your First Process with SAP NetWeaver Business Process Management" with the "Purchase process". I did everything as mentioned in the tutorial.
    At the end, I would like to start the process using
    NWA > Configuration management > Processes and Tasks > Process Repository
    I can see my WD example that I have deployed and I see the my task definitions and my process definition. In the tutorial it says, that I can select the process definition and click "Start process". But the button "Start process" is always disabled. I cannot click the button. I don't know why. Did I miss something?
    I am logged in as Administrator. I am using NW AS 7.2 and I am developing with NWDS 7.1 SP04.
    Anyone has an idea what can I do to start the process?
    Thanks in advance
    Edited by: Patrick Beck on Jun 25, 2010 4:55 PM

    Thanks for the link.
    I added the new context attribute in the XSD files (under Process Modeling > Data Types > XSD Files).
    Since I added a new context attribute "Comment" of type String in my Web Dynpro, I added the following on the corrent position of the XSD files:
                             <xsd:element name="Comment" type="com.sap.dictionary.string">
                   <xsd:annotation>
                        <xsd:appinfo>
                             <xsd:attribute name="ReadOnly" type="xsd:boolean" fixed="false"/>
                                                                          </xsd:appinfo>
                   </xsd:annotation>
              </xsd:element>     
    I also edited input and output mapping of the human and automated activities to support the new attribute "Comment". I thought this is enough to pass the new "Comment" parameter from activity to activity.
    But when I started the process, I filled in the comment field in Web Dynpro and went to the next step in the process. Seems like the new attribute value for "Comment" got lost. It does not appear in the next process step.
    Did I miss something?
    These are the steps I did:
    - edit Web Dynpro UI to support the new context attribute "Comment". created new input field and mapped to the Comment context attribute (that is defined in my WDP interface).
    - edited XSD files (one for each human activity) to support the new Comment attribute as mentioned above.
    - edited the mapping between the activities to support pass-through of the new Comment attribute between the activities
    But it seems like it's not saved in the context attribute "Comment". It got lost after the first step.
    Any ideas?

  • Start BPM Process from ABAP with another User as GUEST

    Hi all,
    i would like to start the BPM Process by a webservice. It works if the user GUEST has the role BPM_SuperAdmin.
    My question is: How can i chance this user, who call the webservice starting the process. The user, who starts the process by calling the webservice should be my own user instead of GUEST.
    Thanks in advance.
    Regards,
    Christoph

    the last reply is regarding the configuration at consumer side.
    of course you have to configure at the service provider side to enable the logon ticket as acceptable authentication method.
    I checked at my side, i found the the service for triggering bpm is already configured to use id/pwd and logon ticket as authentication method.
    you can check in this way,
    CE nwa-> SOA  Management->Application and Scenario Communication-->Single Service Administration
    find your service, if you haven't assign any profile to your service, there will be only one configuration generate by system
    you can edit this configuration.
    go to configuration tab, select the endpoint, select security tab in the bottom tab list.
    change the setting there.
    Edited by: John Wu on Sep 10, 2010 7:29 PM

Maybe you are looking for

  • Print the report on page has width larger than height and not landscape mode

    Hi, I'm trying to print report on page (Width: 18cm, Height: 13cm) which the width larger than the height. The problem is windows keeps changing the page oreintation to landscape and when I change it back to portrait its changing the width to 13cm an

  • Best practice for upgrading task definition in production system

    If I try and update a task definition with task instances running I get the following error: Task definition 'My Task - Add User' may not be modified while there are active task instances Is there a best practice to handle this. I tried to force an u

  • ToggleButtonBar - how to change color for only one button

    I have a tooglebuttonbar (with 4 buttons) and I'd like to change the color of only one or two button according particular data. Is someone has experience to do that. I try to do like that var child:Button;    child = Button(tbbAction2.getChildAt(0));

  • Servlet to portlet. can see test page but not my servlet

    Hello all. -I'm trying to register a very basic servlet (it just write a message in get or post methods) named mpi_servlet.class -I followed the instructions of "Packaging and Deploying Your Provider" and made the changes to the files. -Copy mpi_serv

  • Easy DMS and object links

    Hi I have added cProjects object links from DMS. It works fine if I create an object link from cProjects, but if I add an object link from DMS there is no link created in cProjects. Ideas anyone?? Regards Camilla