BPM(with wait step) calling another BPM

Hello,
I have this scenario whereby i need to call a BPM from another BPM process. Call it BPM1 and BPM2. BPM1 will have a Sync-Send-step to call BPM2.
The following is what i have setup:-
Working OKAY:-
BPM1 (receive from file, send syn step to BPM2) --> BPM2(receive step (Open S/A Brige) from BPM1, send step (Close S/A Bridge))
But if i put an wait step (for 1 minute, see below) before the send syn step in BPM1, i will have problem and the queue in BPM1 show "STOP" and the BPM2 queue show "RETRY".
Problem:-
BPM1 (receive from file, wait step, send syn step to BPM2) --> BPM2(receive step (Open S/A Brige) from BPM1, send step (Close S/A Bridge))
Yes, the RETRY will work but the problem is, my BPM1 has already timeout and has ERROR (see from SWWL) and BPM2 has exceptional error in the Close A/S Bridge send step (because it can't send back to BPM1).
Anyone has any idea how to resolve this? and hopefully the above is clear enough to discribe the problem that i'm facing now.
Any suggestions are welcome, scott.

The minimum BPM-wait duration is 1 min and cannot be decreased below that....

Similar Messages

  • BPM process calling another BPM process synchronously

    Hi,
    When have a BPM (SCENARIO_1) that receives a request.
    The BPM makes a SYNC call to another BPM (SCENARIO_2_SYNC_SEND). The second BPM should return the sync response to the first BPM. The second BPM has been implemented as a SYNC/ASYNC bridge. .........This scenario is NOT working.
    We have independently tested the second BPM and can confirm that it works correctly and as expected when it is NOT called by another BPM.
    design steps of BPM
    1. BPM (SCENARIO_1)
               start -> receive(async) - >send(sync - calls 2nd BPM) -> stop
    2. BPM (SCENARIO_2_SYNC_SEND). (this BPM is invoked by first BPM (SCENARIO_1)
                start ->receive(sync -open SA bridge) ->send(sync - calls webService) ->send(closes SA bridge)
    Is SAP PI supports synchronous call from one BPM to another BPM???
    rgds,
    RDS

    Hi Henrique,
    we also done the BPM calling another BPM asynchronousl;y, which is working fine.
    In this case, I designed BPM like follows (as initially mentioned)
    1. BPM (SCENARIO_1)
    start -> receive(async) - >send(sync - calls 2nd BPM) -> stop
    Note : In 'send' step, I selected 'Create New Transaction'.......if I don't select this property then system dumping without invoking the second BPM, When I select this property the second BPM is invoked after the 1st BPM completes i.e it waits for  CHECK_FOR_ASYNC_RESPONSE_TIMEOUT (default value 60 secs)  to elapse. during this time an entry in the outbound queue (smq2) appears 
    2. BPM (SCENARIO_2_SYNC_SEND). (this BPM is invoked by first BPM (SCENARIO_1)
    start ->receive(sync -open SA bridge) ->send(sync - calls webService) ->send(closes SA bridge)
    how do we check whether it using more than one queue??
    we have only looked at smq1 & smq2.
    We see an entry in SMQ2 which stays there for the timeout period of the first BPM.
    It seems as if the second bpm doesnt see it until the first BPM closes.  
    I might think this is appropriate behaviour to stop the engine processing the same message more than once which would explain the behaviour we are seeing. However this would mean PI would not support BPM synchronously calling BPM which is what we are trying to determine if it is supported. 
    We cant find any documentation saying this is possible and alot of documentation indicates workarounds.
    Have you ever seen this scenario implemented.
    <removed by moderator>
    Hi supriya,
    There is no problem in getting the response from webservice, the problem is the BPM which calls webservice itself invoked after the timeout of first BPM.
    Edited by: Shankar Raju Devadoss on Aug 25, 2010 7:21 AM
    Edited by: Shankar Raju Devadoss on Aug 25, 2010 7:32 AM
    Edited by: Prateek Raj Srivastava on Aug 25, 2010 11:24 AM

  • BPM  - Crate new Transactio - Error when call another BPM

    Hi,
    I have an XI application with BPMs and the XI with SP8.
    The fist BPM has transformations and send steps and calls the second BPM.
    In the DEV environment we are applying SP12, now it's possible to disable the option "Create New Transaction" for Send and Transformation.
    I need to disable this option because, my application woks with bad performance and use 100% of the workprocess all the time.
    So, when I disabled this option, "Send Stets" whose call another BPMs didn't work fine. The transformations steps and send steps to R/3 worked fine.
    Does anybody know why send step to another BPM doesn't work when call another's BPMs?
    Best Regards,
    Fernando

    Interesting issue. Have never tried it personally and currently working on a SP 16 XI 3.0 system else would have given this a shot.
    If you do get an updates on this issue, pl let us know
    Regards
    Bhavesh

  • BPM as sender service to another BPM

    Hi Experts,
                       I have a requirement, where I need to define my first BPM as sender service for second BPM.  abstract interface in last send step of first BPM and abstract interface in first receive step of second BPM has same message type.
    How to perform the configaration for thsi. any help can will be much appreciated.
    Thanks,
    Reyaz Hussain

    Simply u need to configure Receiver determination such that BPM1 as sender and with your sender Abstract interface and you BPM2 as receiver.
    Accordingly u need to configure interface determination between sender and receiver abstract interfaces.
    You need not to create Sender Agreement and Receiver Agreement, as your sender and receiver both are BPMs(which execute in BPE (in IS)).

  • BPM with waiting status in MONI

    hi forum ...
    in a fille to file scenario...with BPM.....
    there are two receivers and 1 send step....
    its like receiver1-->receiver2----->send1
    when the scenario runs.......it receives a particular message for "receive2".....which i cant provide right now.......so the sxmb_moni shows a waiting status .....means a clock like signal......
    how can i stop the BPM instance in waiting loop
    is there any time out after which the BPM instance ll stop automatically

    <<you have configured a terminating event>>
    but i cant provide that condition due to some reasons......
    <<SWIA to complete the workflow manually>>
    how to do that...can u elaborate

  • BPM with split synchronous calls and merge

    I need to create a BPM that will take a synchronous request message. The synchronous request message contains a customer ID based on two synchronous web services are called on 2 different systems. The results of these need to be merged and sent back as a synchronous response.
    Please help me formulate this BPM, as I am a little weak in this area.

    Hi Hemal,
    You can proceed like this. Use a receive step to receive the request message. Then use 2 synchronous send steps to send the request to the web services.  Use the mapping outside the BPM(recommended as it reduces the load on the BPM). The send step will itself receive the response. Now use a transform step that uses the mapping to merge the response messages. And then a send step to send the output on the target side.
    For more discription on synchronous messages have a look in this link:
    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    For collecting and bundling of messages use this:
    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    Regards,
    Sanjeev.

  • Problem with web template calling another template

    Hi all,
    We have a Web template which when gets executed displays result in table form.Now one of the fields in that table is Europe. My requirement is when i click on that field Europe it should execute another web template that was designed for Europe.How do i link this field to another template?
    Please help.
    Regards,
    Suchitra

    Hi Suchitra,
         You can't create link between a field and a query view. You can change your template by using the tab strip, so that each tab will give you the details of different country.
        Or else, you can use buttons to navigate from one query to the another.
    Steps:-
    Button -Right Click -Data Provider- specific command -select the query - ok
        You can also use hyperlink in BEx to move from workbook to the another.
    Regards,
    Yokesh

  • Create BPM only for WAIT step..

    HI All,
    I am working on a IDOC-XI-File interface. Its working perfectly fine.
    Due to excellent processing times in SAP, our system ends up sending many files almost at same time( diff in milliseconds I guess) to the legacy system. However Legacy system doesnt like it and wants us to send a file every 1 second apart.
    I tried using the '
    WAIT UP TO 1 SECONDS'
    statement in R/3 ssytem but somehow system does not wait for 1 second( I guess that why they call it UP TO and not WAIT TILL ) ).
    Instead of relying on R/3 I thought of creating a BPM witha WAIT step. However have never done BPM before, so wanted your opinion before venturing into it for the following:
    1. Can I create a BPM just to introduce 1 sec delay.
    2. Since my interface is working currently, If I need to use BPM, will I have to redo the mapping etc.
    3. How much time effort do you guys think will be needed to convert an existing(working interface) to BPM interface with WAIT step. (Its an Z-IDOC with 3 segments and no-hierarchy)
    4. Any blogs, threads to do it would be highly appreciated.
    Many thanks
    Shirin

    u can use BPM to wait for other message.
    you have to create abstract message interface for BPM.
    but no need to change anything in mapping.
    use abstract message interface in interface mapping.
    use blog:
    Using a BPM to collect messages for a set interval of time
    Delivery Modes in BPM.

  • Wait step in BPM hangs!

    Hello,
    I am using a wait step in a BPM. Type is "Wait specified time period". The period is 2 minutes.
    I can see from process monitoring that my BPM reaches the above step. And then it just hangs !!!!
    Time goes by but nothing happens. The BPM never! goes to the next step.
    I cannot understand it. Such a simple step is causing me great pain!!!!
    Anynone outhere with similar experience ???
    Thanks in advance
    Dimitris Hagigeorgiou

    Hi,
    I know this question is inactive, but I had the same problem, and the proposed solution isn't correct. The problem came after upgrading to SP17- What had changed?
    Anyways, I checked the workflow customizing (trx swf_xi_customizing) and all were checked, green and good. Finally, after lots of testing and reactivating for no good, I tried executing the checked "Schedule Background Job for Missed Deadlines" function in the workflow customizing again, and behold: the scheduled job had been rescheduled after the upgrade to start 6 months into the future!? Why? No idea, but after re-scheduling, all wait step are executed nicely.
    Hope this will be helpful to some other frustrated BPM administrator someday. Regards,
    Emil

  • Web Service call to BPM to call another Web Service - all synch

    HI all,
    I have a webservice call to GetDocument from external system. In BPM I like to call another ws (SearchDocument) to retrieve metadata, which I need to complete the first GetDocument webservice. All synch if possible.
    Any idea how to achieve this with (or mayby without) BPM ??

    Thanks for your reply. Can you elaborate on that a bit more ?
    My first WS call is to get a document..but because I need to add some metadata in order to have a succesful call I need to call another WS first to the same system to get the required metadata. Then I need to use this metadata to complete the first - GetDocument- call....
    Hope this clarifies the scenario...
    Is it maybe possible to do this another way..in sequence..using response data to populate another ws call ??
    all help appreciated !
    cheers,

  • Wait step stops during PI BPM workflow

    Hello Guys,
    I'm testing the one BPM scenario in my test system, during runtime the workflow stops before wait step (only 1 min) but after 1 min the message not process and it is stucked in  'in process' state.
    Earlier the scenario works good with wait step, but now it's not working in Dev & test systems but only working in Production system,
    Note: Recently we migrated from Service pack upgraded from PI 7.31 SP06 to SP11 in all three systems.
    Do you have any idea on this error?  could you please suggest me
    Thank you.
    Sateesh

    Hello Udo,
    You are absolutely right, I reschedule my background jobs in t.code SXMB_ADM_BPE then it resolved my issue.
    And I have one more question currently my PI systems are in 7.31 SP11 and getting error ' Cache content Obsolete' (SXI_CACHE-->deltaMonitoring)
    Could you please provide me any suggestions on this .
    Thank you.
    Sateesh

  • BPM Scenario (4 steps in sequence)

    Hi gurus,
    I am facing following scenario:
    PI receives a WS request, with some info
    With this info, PI accesses a tabla in a DB in order to insert an STATUS field ('In_Progress' status)
    With the same info (received via SOAP) PI accesses to SAP via sRFC and gets its output fields.
    With this output, PI accesses the same tabla, updates the STATUS field ('Finished' status) and fills the table
    So I decided to create a BPM with 4 steps:
    Step1: RECEIVE the SOAP_Request_AI (async)
    Step2: SEND the JDBC_STATUS_AI to LEGACY (async)
    Step3:SEND the SEND_RECEIVE_sRFC_AI to SAP (sync)
    Step4: SEND the JDBC_RESPONSE_AI to LEGACY (async)
    I have created 7 MI's:
    SOAP_REQUEST_OI -> out of the BPM, it receives the message from WS
    SOAP_REQUEST_AI -> inside the BPM, it receives the message from SOAP_REQUEST_OI  (No IM)
    JDBC_STATUS_AI --> inside the BPM, it sends the message (that step1 received) to the DB (IM)
    JDBC_STATUS_II --> not used so far!
    SEND_RECEIVE_sRFC_AI -> inside the BPM, it sends the message (that step1 received) to SAP (IM)
    JDBC_RESPONSE_AI ->inside the BPM, it takes the response of step3
    JDBC_RESPONSE_II -> out of the BPM, it sends the message (that comes from step4) to DB (IM)
    All my mappings are out of the BPM.
    Interface Determinations:
    SOAP_REQUEST_OI to SOAP_REQUEST_AI (No Mapping)
    SOAP_REQUEST_AI to JDBC_STATUS_II (Mapping) --> here i have a doubt
    SEND_RECEIVE_sRFC_AI to ZRFC (Mapping)
    JDBC_RESPONSE_AI to JDBC_RESPONSE_II (No Mapping)
    I followed the instructions of the following blog regarding MI's and mappings but it doesnt work!!!
    RFC Scenario using BPM --Starter Kit
    However if i delete step2, it does work so i think i am missing something regarding the conversion between interfaces in step1&2 and step2&3.....
    Could you please give some indications?
    Thanks a lot in advance and best regards,
    David

    David,
    I think you need to change the objects. Please try the below logic, and let us know if it helps!
    Message Interfaces used
    SOAP_REQUEST_OI
    SOAP_REQUEST_AI
    SOAP_REQUEST_OI
    JDBC_STATUS_AI
    JDBC_STATUS_II
    SEND_RECEIVE_sRFC_AI
    JDBC_RESPONSE_AI
    JDBC_RESPONSE_II
    Sender Agreement:
    O/B Interface : SOAP Request_OI
    Receiver Determination -1
      Sender : SOAP Service
      Outbound Interface :SOAP_REQUEST_OI
      Configured Receiver : BPM
    Interface Determination-1
      Sender : SOAP Service
      Outbound Interface :SOAP_REQUEST_OI
      Inbound Interface :SOAP_REQUEST_AI
      No Interface Mapping
    Receiver Determination -2
      Sender : BPM
      Outbound Interface :SOAP_REQUEST_AI
      Configured Receiver : JDBC Service
    Interface Determination-2
      Sender : BPM
      Outbound Interface :SOAP_REQUEST_AI
      Inbound Interface :JDBC_STATUS_II
      Interface Mapping IM_WS_2_JDBC
    Receiver Determination -3
      Sender : BPM
      Outbound Interface :SEND_REC_RFC_AI
      Configured Receiver : RFCService
    Interface Determination-3
      Sender : BPM
      Outbound Interface :SEND_REC_RFC_AI
      Inbound Interface :ZRFC
      Interface Mapping from IM_WS_2_RFC_2_JDBC
    Receiver Determination -4
      Sender : BPM
      Outbound Interface :JDBC_RESPONSE_AI
      Configured Receiver : Receiver Service
    Interface Determination-4
      Sender : BPM
      Outbound Interface :JDBC_RESPONSE_AI
      Inbound Interface :JDBC_RESPONSE_II
      No Interface Mapping
    BPM Steps
    Step1:
    Receive: SOAP_REQUEST_AI
    Step2:
    Asynch Send:SOAP_REQUEST_AI
    Step3:
    Synch Send:
    Synch Interface:SEND_REC_RFC_AI
    Request:SOAP_REQUEST_AI
    Response:JDBC_RESPONSE_AI
    Step4:
    Asynch Send:JDBC_RESPONSE_AI
    I'm sure the above config will provide solution to the issue.
    Thanks,
    raj.

  • Wait step parameters

    Hi everyone.
    I want to insert a wait step in a BPM. The problem is that this wait step has to 'wait' every day at 10 o'clock AM and i don't know how to set this parameters.
    With time i have no problem : 100000
    With date .. what shall i put?
    Thanks.

    Hi,
    The wait step will take effect, only if a BPM instance is running and it has hit the wait step...
    How are you ensuring that a BPM is running at everyday 10 o clock.
    You might want to search in forums / blogs to get details on scheduling .
    Thanks,
    Renjith

  • Wait step taking longer time than the defined wait time

    Hi,
    We have very simple BPM with 3 steps: Receive, Wait and Send.
    Wait step has following parameters:
    Type: Wait Specified Time Period
    Duration: 1
    Unit: Minutes
    From the above parameters idelly it should wait only for 60 sec and start the next step which is send step. But Wait step is taking following times: 1m 09s,1m 40s, 3m 40s, 1m 41s, 2m 10s, 2m 16s, 2m 46s, 1m 09s, 1m 40s, 3m 39s
    Does anyone know what could be the reason for above longer wait time??
    Thx
    N@v!n

    Hi Naveen,
    How did you measure these times? Tha additional time might be because of the message processing time included or size of the message is bigger to process.. or may be because of the network traffic..!!
    Check the each time stamp from message monitoring tool in RWB and verify for accuracy.
    VJ

  • Local Session Bean calling another local Session Bean in EJB 3.0

    Hi,
    In EJB 3.0, I am trying to do JNDI lookup of a local sesion bean from another session bean's helper class.
    I am not using @EJB injection mechanism here, as call to the local session bean is made in a helper class. Helper classes do not support resource injection.
    Following are the EJB class definitions used in my project. Call to "EJB3Local" made from "EJB1" fails as the "EJB2" helper class is calling "EJB1Local"
    @Stateless
    @EJBs({@EJB(name="EJB2Local", beanInterface=EJB2Local.class),
    @EJB(name="EJB3Local", beanInterface=EJB3Local.class)})
    public class EJB1 implements EJB1Remote, EJB1Local{
    public void findEJB3Local(){
    //1. JNDI lookup for EJB3Local ----
    //2. EJB3Local.someFunction()
    @Stateless
    @EJB(name="EJB1Local", beanInterface=EJB1Local.class)
    public class EJB2 implements EJB2Remote, EJB2Local{
    public void findEJB1Local(){
    //1. JNDI lookup EJB1Local
    // 2. Call EJB1Local.findEJB1Local method
    @Stateless
    public class EJB3 implements EJB3Remote, EJB3Local{
    public void someFunction(){}
    A remote call to EJB2.findEJB1Local() will invoke EJb1Local.findEJB3Local method and the call fails with "java:comp/env/EJB3Local" not found in EJB1Local.
    Has anybody encountered an issue like this issue with local interface calling another local interface?
    Thanks,
    Mohan

    To refer a Ejb from another Ejb include <ejb-ref> element
    in ejb-jar.xml
    <session>
    <ejb-name>SessionBeanA</ejb-name>
    <ejb-ref>
    <ejb-ref-name>SessionBeanB</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <home>com.ejb.SessionBeanBHome</home>
    <remote>com.ejb.SessionBeanB</remote>
    </ejb-ref>
    </session>
    Include a <reference-descriptor> in weblogic-ejb-jar.xml
    <weblogic-enterprise-bean>
    <ejb-name>SessionBeanA</ejb-name>
    <reference-descriptor>
    <ejb-reference-description>
    <ejb-ref-name>SessionBeanB</ejb-ref-name>
    <jndi-name>com.ejb.SessionBeanBHome</jndi-name>
    </ejb-reference-description>
    </reference-descriptor>
    </weblogic-enterprise-bean>
    In SessionBeanA Bean class refer to SessionBeanB with
    a remote reference to SessionBeanB.
    InitialContext initialContext=new InitialContext();
    SessionBeanBHome sessionBeanBHome=(SessionBeanBHome)
    initialContext.lookup("com.ejb.SessionBeanBHome");
    SessionBeanB sessionBeanB=sessionBeanBHome.findByPrimaryKey(primarykey);
    sessionBeanB.update();
    sessionBeanB.getAll();
    thanks,
    Deepak

Maybe you are looking for

  • Copy price conditions from order to invoice

    Dear experts, I have a problem I can't solve myself ! When we create an invoice from an order, the conditions are copied using a predefined pricing procedure in customizing ... Now, I think I have a strange problem ... When the conditions are copied

  • Desktop Software and Bluetooth (not just a rehash of the same problem!)

    Hoping someone here can help me! I'm just about to go batty. Long story - so I'll just skip to the relevent parts. I'm trying to connect my (T-Mobile) 8800 to my PC (it's an old Sony desktop, that did not come with bluetooth support. Running SP3) I'v

  • Changing the CQ5 generated div tag around components

    We are going to use CQ5 as a content platform to be consumed by another service which is the end-point for our users. As in we will be providing HTML for small sections of the front facing websites. To alleviate any issues that might come up from thi

  • CS4 Design View not showing

    I am unable to get the design view to work unless I have Live View open in which case my properties box is unavailalbe.  I did have "overflow hidden" in my CSS but I deleted it, closed Dreamweaver and it still doesn't work.  When I right click and go

  • C5-04 "System Error, try again later"

    Trying to sync my phone with my Google account I have downloaded MfE 3.00.078 on my C5-04. Following the instructions on the Google website I continue to get the error message "System Error, try again later". I have tried only syncing one service at