How to skip exection of a set of activities at runtime in a BPEL Process.

Hi All,
Please suggest me how the following scenario can be achieved.
I have a BPEL process with 3 scopes, in each scope i have an invoke activity to call an async process.
Currently the control is in scope-1 ,Once the execution of scope-1 is done i want to skip execution of scope-2 and want to execute scope-3.
How can i achieve it at runtime....
Thx,
Siddhardha.

I think that once the instance has started, there is no way to manually mark a scope as "skip" or something. You will need to code a switch in your process when scope2 needs to be executed and when not. You could base the condition on a preference (descriptor property), but those values apply to all instances, not just a single instance

Similar Messages

  • How to create an excel report and send it via email using a BPEL process ?

    Hi Experts,
    I have a requirement to develop a xl report based the data in the DB table. I will have to query the list of records entered / processed during previous day, generated the xl based report and send to users via email.
    I talked to one the experts, he asked me to use the following Adapter and BPEL activities to accomplish it.
                   DBAdapter --> {BPEL  process} --> Java Embedding --> Email Activity.
    Can someone please help me to pass the information retrieved by DBAdapter to Java Embedding and then to email import? I have created DBAdapter and Java Embedding. I don't know, how to retrieve the data read / sent by DBAdapter using Java Embedding. Also please help me to pass the xl attachment to Email Activity.
    Thanks for your help in advance!
    Thanks,
    Harisudhan Selvaraj

    I would suggest something like:
    DBAdapter --> Bpel Process --> File Adapter --> write file to location (you can write in csv which can be imported into xls)
    Read Location --> FileAdapter --> Bpel Process --> Email Activity
    Regards,
    Anshul

  • How to skip PROCESS_VALIDATION phase without setting immediate to true

    I am getting the following error and I don�t know what to do.
    I know it is caused during the PROCESS_VALIDATIOn phase.
    Please help. I have a reproducible example after the message.
    Error 500--Internal Server Error
    java.util.NoSuchElementException
         at javax.faces.component.SelectItemsIterator.next()Ljava.lang.Object;(SelectItemsIterator.java:98)
         at javax.faces.component.SelectItemsIterator.next()Ljava.lang.Object;(SelectItemsIterator.java:124)
         at javax.faces.component.UISelectOne.matchValue(Ljava.lang.Object;Ljava.util.Iterator;)Z(UISelectOne.java:141)
         at javax.faces.component.UISelectOne.validateValue(Ljavax.faces.context.FacesContext;Ljava.lang.Object;)V(UISelectOne.java:114)
         at javax.faces.component.UIInput.validate(Ljavax.faces.context.FacesContext;)V(UIInput.java:645)
         at javax.faces.component.UIInput.executeValidate(Ljavax.faces.context.FacesContext;)V(UIInput.java:849)
         at javax.faces.component.UIInput.processValidators(Ljavax.faces.context.FacesContext;)V(UIInput.java:412)
         at javax.faces.component.UIForm.processValidators(Ljavax.faces.context.FacesContext;)V(UIForm.java:170)
         at javax.faces.component.UIComponentBase.processValidators(Ljavax.faces.context.FacesContext;)V(UIComponentBase.java:912)
         at javax.faces.component.UIViewRoot.processValidators(Ljavax.faces.context.FacesContext;)V(UIViewRoot.java:342)
         at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(Ljavax.faces.context.FacesContext;)V(ProcessValidationsPhase.java:78)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(Ljavax.faces.event.PhaseId;Lcom.sun.faces.lifecycle.Phase;Ljavax.faces.context.FacesContext;)V(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(Ljavax.faces.context.FacesContext;)V(LifecycleImpl.java:90)
         at javax.faces.webapp.FacesServlet.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(FacesServlet.java:197)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava.lang.Object;(Optimized Method)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.FilterChainImpl;)V(Optimized Method)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(ServletStubImpl.java:315)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run()Ljava.lang.Object;(WebAppServletContext.java:6718)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.security.subject.AbstractSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(Lweblogic.servlet.internal.ServletRequestImpl;Lweblogic.servlet.internal.ServletResponseImpl;)V(WebAppServletContext.java:3764)
         at weblogic.servlet.internal.ServletRequestImpl.execute(Lweblogic.kernel.ExecuteThread;)V(ServletRequestImpl.java:2644)
         at weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest;)V(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:178)
         at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Source)
    I am using sun JSF 1.1.01 and Web Logic 8.1.
    To reproduce this error
    1) Type "testname1" in the Name text field and click the "add name" button.
    The form is submitted and the "testname1" is added to the NameList (listbox).
    2) Now select "testname1" from the nameList (listbox) and click the "remove name" button.
    The form is submitted and the "testname1" item is deleted from the nameList.
    So far it working fine. Now
    3) Click the "back" button on the browser and click "add name" button.
    BOOM, you will get the above mentioned error. I tried many things but not able to figure out the fix is.
    Please help.
    Code example follows...........................
    Start-----faces-config.xml----
    <?xml version="1.0"?>
    <!DOCTYPE faces-config PUBLIC
    "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
    "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
    <faces-config>
         <managed-bean>
              <managed-bean-name>testForm</managed-bean-name>
              <managed-bean-class>
                   com.presentation.forms.testForm
              </managed-bean-class>
              <managed-bean-scope>session</managed-bean-scope>
         </managed-bean>
    </faces-config>
    Start-----faces-config.xml----
    Start-----TestForm.faces----
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
    <body>
    <f:view>
         <h:form>
              NameList: <h:selectOneListbox value="#{testForm.nameValue}" size="5">
                   <f:selectItems value="#{testForm.names}" />
              </h:selectOneListbox><br>
              Name: <h:inputText value="#{testForm.name}"></h:inputText>
              <h:commandButton action="#{testForm.removeAction}"
                   value=" Remove Name" />
              <h:commandButton action="#{testForm.addAction}"
                   value=" Add Name" />
         </h:form>
    </f:view>
    </body>
    </html>
    End-------TestForm.faces----
    Start----testForm.java------
    package com.presentation.forms;
    import java.util.ArrayList;
    import java.util.List;
    import javax.faces.model.SelectItem;
    public class testForm {
         String name = "";
         String nameValue = "";
         List rememberSelectedNames = new ArrayList();
         List names = new ArrayList();
         public List getNames() {
              return names;
         public void setNames(List names) {
              this.names = names;
         public String removeAction() {
              for (int i = 0; i < names.size(); i++) {
                   SelectItem item = (SelectItem) names.get(i);
                   if (item.getValue().equals(nameValue)) {
                        names.remove(i);
              return "";
         public String addAction() {
              System.out.println("Name is " + this.name);
              if (names == null) {
                   List items = new ArrayList();
                   items.add(new SelectItem(name, name));
                   names = items;
              } else {
                   names.add(new SelectItem(name, name));
              return "";
         public String getName() {
              return name;
         public void setName(String name) {
              this.name = name;
         public String getNameValue() {
              return nameValue;
         public void setNameValue(String nameValue) {
              this.nameValue = nameValue;
    End------testform.java------

    Hi again,
    It seems to solve my issue but I need to press F5 after clicking the button. This button has an action == "cancel" and actionListener method in my bean.
    When I press the button the page doesn't refresh as is supposed but if I press f5 it seems like it is when the action "cancel" is being sent. It solved my problem but it didn't.
    Frustration
    Solved by adding resetActionListener on my cancel button.
    Edited by: Alejandro T. Lanz on 04-Dec-2012 14:46

  • How to use multiple WSDL operations in One BPEL process Recieve Activity ?

    Is there anyway to attach multiple WSDL operations with a Single BPEL process ? How ?

    Thanks Melvin for your quick respond.
    When I create a BPEL process, It asks me to give the XSD as an Input. When I import the XSD it asks me to select an operation not more than one. Let suppose I select addRequest and finish the wizard.
    Now what I can see, It create Recieve activity with an Input msg of Add operation. Well what I understand from your statement is that, I remove the recieve activity and put the Pick activity.
    Now my question is How to mention the other operations like update and delete ? And how to test them ?? The link provided by you is just tell me what Pick activity can do for me, But its not telling me how to use it ?? and how the give the operation to it. Where should I need to change in the BPEL ???

  • How do I make the Shuffle Setting on my iTunes More Random?

    Hi,
    I've just recently got my iPod classic (finally) and I love it! But, I have a question about iTunes. My question is: How do I get the shuffle setting in my iTunes to be more random? I have "The iPod Book" by Scott Kelby and looked this up, but I have the fourth edition, and so the picture for the iTunes > Preferences > Playback > picture is not the same as mine. I can't find the bar to slide the shuffle setting to more random or as Apple puts it " least likely". Not that it's the most important topic in the world, but I already have a total of almost 1500 songs and I'm still having to skip because I have music from the same album or the same song(s) popping up about 4 tracks later. This is really frustrating since part of the reason I bought it was to listen to ALL my music shuffled, but instead I spend more time switching through my music to finally get to something different. Does anybody know how to do this with the new iTunes version? Also to clarify, I have already searched through the automatic help that's offered in iTunes and nothing is coming up that helps me, and I've tried searching Support here on the website and ll I get is how to either turn shuffle on or tech support for having an iPod shuffle, not how to make it more random

    I took a play list of 3500 songs and sorted first by album name and then by track.
    Is there some reason you think you needed to sort by Album first?
    As soon as you sort on any other column, iTunes doesn't care you sorted this first. It is now ignored.
    I don'dt know if we have a semantics problem
    We don't.
    Sorting by Album first then sorting by Track # sorts by Track #  and Album name as the secondary sort.
    You don't need to first sort by Album.
    THIS DOES NOTHING!
    When you sort by Track #...
    Abbey Road -Track 1
    Americana - Track 1
    Anthology - Track 1
    Abbey Road -Track 2
    Americana - Track 2
    Anthology - Track 2
    Therefore both the primary and secondary sorts mean something.
    Correct.
    You are not selecting the secondary sort. Sorting by Track #, the secondary sort is always Album.
    Try this.
    Sort by Artist then sort by Track #.
    It is now sorted as above.
    Sorting by 1 column then another does absolutely nothong (except take a few more mouseclicks).
    I rest my case.

  • How to skip line for delimited file type?

    Hi, i wanna ask how to skip (example: the first two line) for delimited file type?
    Thanks...
    Here is my script
    Function NY_Skip06Center [strField, strRecord]
    ' FDM DataPump Import Script:
    'Created by: FDM_Admin
    'Date created: 2/28/2006
    Dim strEntity
    'Check first two characters of entity
    For strEntity = 1 to 6
    'Skip line
    Res.PblnSKip = True
    Next strEntity
    End if
    End Function
    But it returns this error when imported
    Error: An error occurred importing the file.
    Detail: Object variable or With block variable not set
    Anyone knows what's wrong
    Edited by: user649207 on Mar 19, 2010 2:15 AM
    Edited by: user649207 on Mar 19, 2010 3:04 AM

    strAcc = DW.Utilities.fParseString (strField, 1, 1, chr(9))
    I didn't look closely enough last time. The above is illogical. The parsestring function parses a string based on a delimiter.
    The function has these arguments:
    String to Parse
    How many fields are in the string
    The parsed field to return
    Field delimiter
    In the above, strField is returning the field specified in your import format. You are also saying that there is a total of 1 field. If that were the case, you wouldn't need to parse anything.
    I am guessing that your call needs to look something more like this:
    strAcc = DW.Utilities.fParseString (*strRecord*, *8*, 1, chr(9))
    Make sense?
    If not, maybe you can include a few sample lines from your data file and that will make it easier to help you.
    Is your import format fixed or delimited?

  • How to skip a record in flat file to idoc scenario?

    Hi,
    Anybody have good suggestions on how to skip a record(xi not process the record) based on certain conditions?  I don't want to use bpm, anybody has experience with file to idoc can advise how to deal with this situation?
    Thanks,
    Meg

    Meg,
    Its very clear. It can be easily done. I hope u might be knowing about Michal's changing the IDOC occurence blog. Based on that blog change the IDOC occurence to 0...Unbounded.
    Now map all the necessary fields to the target IDOC. On the IDOC root node set condition from source if the source field is not Delete then create IDOC else don't create.
    Source --- If without else[Check condition if  the source is delete] -
    IDOC(root node).
    /people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change
    Hope its clear, if not kindly revert back.
    Best regards,
    raj.

  • How to skip selection screen? Please help!

    Hi Experts,
           I have a report program that has a default selection screen (1000) and ALV output. First selection screen is displayed and on execution ALV is shown.
    My requirement is, if the user is not authorized to run this report then selection screen should be skipped and instead display a error page. This error page is nothing but some write statements in ABAP displaying error icon and error info.
    Currently I have written the authorization check in the INITIALIZATION event. Here I am setting a flag if the user is not authorized followed by "write" statements showing error info.
    But when I run the report, error info is not displayed and instead selection screen loads even though the user is not authorized. I have written the selection screen code in the TOP include.
    So what shall I do? How to skip the selection screen?
    Are there any other better ways to handle my case?
    Thanks
    Gopal

    Got it.
    CODE:
    REPORT  zzsorttry                               .
    SELECTION-SCREEN BEGIN OF SCREEN 1001.
    PARAMETERS : p_vbeln TYPE vbak-vbeln.
    SELECTION-SCREEN END OF SCREEN 1001.
    DATA : flag.
    INITIALIZATION.
    *C-- Put your authorization check here.
      IF 1 = 1.
        flag = 1.
        LEAVE TO LIST-PROCESSING .
      ELSE.
        CALL selection-screen 1001.
      ENDIF.
    START-OF-SELECTION.
      IF flag IS NOT INITIAL.
        CLEAR flag.
        WRITE: 'User', sy-uname , 'not authorized to use this report'.
      ENDIF.

  • How do I change the printer setting to print in Black only?

    How can I change my printer setting to print in Black only

    It depends on your printer as well; my Epson AIO only does color (even when it is black font only) - or grayscale )sort of a "draft" quality) as it uses some color even for black:

  • How to create a custom layout set to display the KM folders...

    Could someone please tell me how to create a custom layout set to display the KM folders?
    Thanks,
    Sudha.

    Hi Sudha,
    Please check the following blogs whick will guide you step by step.
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/4123
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3071
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c3/c91b5610b65b4aa8204d09384d156b/frameset.htm
    If helps reward points
    cheers
    dev

  • How can we assign one attribute set to multiple business partners at a time ?

    How can we assign one attribute set to multiple business partners at a time ? Is it possible ? Can anyone explain me ?

    Hello,
    please refer to the following thread:
    How can we assign one Attribute Set to multiple Business Partners at a time? Is it possible?
    best regards,
    Johannes

  • My daughter and i share an itunes account. how do i delete her and set her up with her own?

    my daughter and i share an itunes account. how do i delete her and set her up with her own?

    You need to make an iTunes Store account in her name and with her unique Apple ID. Note that everything she has purchased and downloaded under your Apple ID will not transfer to hers. She will need (or you will) to repurchase all of her iTunes Store items.
    She will also need her own user account on the computer if you share the same computer.

  • How to add a new character set encoding?

    Hello,
    can anybody please explain to me, how to add a new character set encoding to Mac OS Tiger?
    I have two Mac laptops, a new one with Snow Leopard and an older one with Tiger, and on the old one i cannot use or enable anywhere the "Russian (DOS)" character set encoding, which i need to be able to use some old text files.
    On the Snow Leopard, this encoding is present in the list of available encodings of TextWrangler, but not in TIger.
    If i have understood correctly, this is not a problem of TextWrangler, and the same encodings are available systemwide.
    So, the question is: how to add new encodings to Tiger (or to Mac OS in general)?
    Thanks.

    I think possibly that's in the Get Info window of Finder?
    I don't think either that or the input menu have any effect on available encoding choices. Adding languages to system prefs/international/languages can do that, but once you have added Russian there, I don't know of any way to add an additional Russian encoding (there are quite a number of them).

  • How do you define which character set gets embedded with a font embedded in the library (i.e. Korean)?

    I have project that uses a shared fonts. The fonts are all
    contained in a single swf ("fonts.swf"), are embedded in that swf's
    library and are set to export for actionscript and runtime sharing.
    The text in the project is dynamic and is loaded in from
    external XML files. The text is formatted via styles contained in a
    CSS object.
    This project needs to be localized into 20 or so different
    languages.
    Everything works great with one exception: I can’t
    figure out how to set which character set gets exported for runtime
    sharing. i.e. I want to create a fonts.swf that contains Korean
    characters, change the XML based text to Korean and have the text
    display correctly.
    I’ve tried changing the language of my OS (WinXP) and
    re-exporting but that doesn’t work correctly. I’ve also
    tried adding substitute font keys to the registry (at:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
    NT\CurrentVersion\FontSubstitutes) as outlined here:
    http://www.quasimondo.com/archives/000211.php
    but the fonts I added did not show up in Flash's font menue.
    I’ve also tried the method outlined here:
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_16275
    to no avail.
    I know there must be a simple solution that will allow me to
    embed language specific character sets for the fonts embedded in
    the library but I have yet to discover what it is.
    Any insight would be greatly appreciated.
    http://www.quasimondo.com/archives/000211.php
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_16275

    Thanks Jim,
    I know that it is easy to specify the language you want to
    use when setting the embed font properties for a specific text
    field but my project has hundreds of text fields and I'm setting
    the font globally by referencing the font symbols in a single swf.
    I have looked at the info you've pointed out but wasn't
    helped by it. What I'd like to be able to do is to tell Flash to
    embed a language specific character-set for the font symbols in the
    library. It currently is only embedding Latin characters even
    though I know the fonts specified contains characters for other
    languages.
    For example. I have a font symbol in the libary named
    "Font1". When I look at its properties I can see it is spcified as
    Tahoma. I know the Tahoma font on my system contains the characters
    for Korean but when I compile the swf it only contains Latin
    characters (gylphs) - this corresponds to the language of my OS (US
    English). I want to know how to tell Flash to embedd the Korean
    language charaters rather than or as well as the Latin characters
    for any given FONT SYMBOL. If I could do that, then, when I enter
    Korean text into my XML files the correct characters will be
    available to Flash. As it is now, the characters are not available
    and thus the text doesn' t display.
    Make sense?
    Many thanks,
    Mike

  • How to get calendar travel time (set up in Mavericks) to show on iOS 7 calendar?

    I was wondering how to get calendar travel time (set up in Mavericks) to show on iOS 7 calendar? If I change a location in mavericaks it is updated in my iOS 7 calendar, but if I add travel time to an appointment, that does not show up on my iphone. This seems like a big miss for apple if this is the case. I could maybe understand not adding the ability to add travel time in iOS 7, but not being able to see the travel times you set up seems very incomplete. Any ideas or insight?

    Hello Cheer,
    I don't believe the table changed when migrating from Access.  I had two tables before the migration, one was for the SwitchBoard Manager and the other table was for the database table.  I used the Switchboard to navigate to different menus, such
    as the Main Form, Power Form, Server Form, etc.  Let me know if I can provide any other information to help you narrow this down for me.   
    Thank you for your assistance. 
    Thai

Maybe you are looking for

  • "Browser" Notification

    I have a notification on the top right of my screen with the number 2 and what looks like small earth or browser icon.  What does this mean and how do I remove it?  It is about in the same place as where new messages would be.  I can't seem to find a

  • Parsing HTML into DOM using HTMLEditorKit

    I am trying to parse an HTML file using javax.swing.text.html.HTMLEditorKit. My limitations are that I cannot install new libraries like jtidy and I must use a .jsp file, not a servlet. I'm able to get the url and parse it using ParserCallBack, but t

  • Help on interesting problem

    Hi all, I'm using form 6i in C/S mode. I need to download data to a csv file. Here is what I need to do: Imagine I have a table with VALUES like this ID RESULT_1 RESULT_2 RESULT_3 RESULT_4 RESULT_5 1 11111 2222 3333 4444 5555 2 6666 7777 8888 9999 00

  • How can I get my ringer to work on face time?

    My ringer will not ring when someone is calling

  • Download music from iMac to iPad via iTunes

    I just want to move a few albums from my iMac iTunes library onto my iPad 3. My music was ripped from my own CDs and was not purchased from the iTunes store. I am not using iTunes Match. I am using OS X 10.8.2, iTunes 11.0.1, and iOS 6.0.1. I plugged