Write PBL code in one place

There are about 10 activities in a process. Most of them have some PBL code snippet such as calculating deadline (including calendar rules) and throwing exceptions.
I also need to create about 50 processes and about more than 500 activities. It is tedious to change all methods in different activities.
Can I just write these similar code snippets in one place? For example, I can put all these similar code snippet in a method and invoke it in different activities (In one process).
If it is possible, can some of the methods is inherited by other PBL methods?

What Eduardo and Marcos are saying is this to create a BPM Object, and start to create the methods you need, and then, in the methods' properties, set them as "static".
And, when you need to invoke them, in your PBL code you place those calls as YourModule.YourHelperBpmObject.yourStaticMethod(args)
Sergio.

Similar Messages

  • All T-codes in one place

    Hi everybody,
       I understand that one need not know all the t- codes. But still Iam interested to know all t- codes in one place.. does SAP provide that....

    Hi Paravinitha,
       Please goto the transcation SE11.Look for database table TSTC. There you can get the details of all the tcodes with its description.
    Regards,
    SRK
    Reward points dear.

  • Need PBL code to call webservice in ALBPM

    I have make one HelloWorld webservice as below:-
    package webBased;
    import javax.jws.*;
    @WebService
    public class HelloWorld {
         @WebMethod
         public int hello(int a,int b) {
              int c=a+b;
              return c;
    I have Created wsdl of it and imported in ALBPM by doing following steps:-
    Catalog-> New Module -> WebService. All the xmls and wsdl are imported.
    Now i want to call it in ALBPM flow and created Global activity. In main task of activity, I need to write PBL code to call that webservice.
    Can anyone help me in this PBL code to call it.
    or is there any other way to call this web service in ALBPM process flow.
    Thanx,
    Vinny

    Thanx. I have drag and drop only two things
    hello(OSBWeb.HelloWorldService.HelloWorldService, a : 10, b : 29, out @return : c)
    helloWorldService = OSBWeb.HelloWorldService.HelloWorldService(endPoint : "http://localhost:7001/TestPOC/HelloWorld")
    and successfully hit the service from Global Activity in ALBPM.

  • Where do i write java code

    I am a java beginner. i need to know which interface i can use to write java code

    Hi ,
    u can write java code in many places
      notepad,
      edit plus ,
      eclipse ,
      netbeans ,
      NWDS (in j2ee perspective thisis for sap side )
    all the thing u need to install jdk first ...
    set your class path .
    go to command promt -> type cmd
    ur command prompt opens .
    open note pad write some code
    execute in command promt  by typing javac  abc.java
    i fno errors  type  java abc
    ur code will be executed and result displayed
    regards ,
    venkat p

  • Can I access my husband's iTunes acct. from my iPad?  I have his permission & pass code.  We want to keep all music in one place & family accessible.

    Can I access my husband's iTunes acct. from my iPad?  i have his permission & pass code.  We want to keep all music in one place & family accessible.

    If you log into his account and download some of his past purchases on your iPad then you risk tying your iPad to his account for 90 days : iTunes Store: Associating a device or computer to your Apple ID
    But it looks like that might change when iOS 8 is released in the Autumn (no date has been announced yet) : http://www.apple.com/ios/ios8/family-sharing/
    If you have his content in your computer's iTunes library then you could sync it from there instead of risking the 90 days association on your iPad. If you don't then you could copy it from his computer and then sync it to your iPad e.g. copy his music to a flash drive and then add it to your library via File > Add To Library

  • How to write java code to read the pixel color in some place of screen?

    Hello all:
    How to write java code to read the pixel color in some place of screen?
    The java application iteself doesn't have any GUI.
    thank you
    -Danel

    See java.awt.Robot

  • Can anyone help me write a code about coping data from many files and paste them to one file !?

    Hello ! 
    As I said in title , I have alot files (e.g. 60 files) and I want to write a code to copy 5 columns (for examples) of special sheet of files and paste them in one file respectively. For perceive it I explained it more below .
    Suppose one of my files is simplified as this : http://s000.tinyupload.com/?file_id=00699705919876414523
    The name of  this file is 2006Oct and assume my excel files are like "2006Oct, 2006Nov,2006Dec,2007Jan ... 2010Dec". At first I should go to "my files" sheet of 2006Oct file and copy columns " A,B,C,D,E,F " that has "PerturbationNumber=1"
    respectively and then paste these to a file that is output file and repeat this process for the other files ( 2006Nov and etc ) and paste data in output file sequentially. 
    I appreciate and look foreward for any help in this issue.
    Majid

    Try code below
    Sub CombineBooks()
    Dim wb As Workbook
    Dim sourceSht As Worksheet
    Dim destSht As Worksheet
    Set destSht = ThisWorkbook.Sheets(1)
    destSht.Cells.Clear
    FolderName = "C:\temp\test\"
    file = Dir(FolderName & "*.xlsx")
    firstSht = True
    Do While file <> ""
    Set wb = Workbooks.Open(Filename:=FolderName & file, ReadOnly:=True)
    Set sourceSht = wb.Sheets(1)
    With sourceSht
    sourceLastRow = .Range("A" & Rows.Count).End(xlUp).Row
    If .Cells.AutoFilter Then
    .Cells.AutoFilter 'turn off autofilter
    End If
    .Cells.AutoFilter Field:=6, Criteria1:="1"
    If firstSht = True Then
    Set copyRange = .Range("A1", .Range("E" & sourceLastRow)).SpecialCells(xlCellTypeVisible)
    destSht.Range("F1") = "FileName"
    firstSht = False
    destNewRow = 1
    Else
    Set copyRange = .Range("A2", .Range("E" & sourceLastRow)).SpecialCells(xlCellTypeVisible)
    destNewRow = destSht.Range("A" & Rows.Count).End(xlUp).Row + 1
    End If
    copyRange.Copy Destination:=destSht.Range("A" & destNewRow)
    LastRow = destSht.Range("A" & Rows.Count).End(xlUp).Row
    If destNewRow = 1 Then
    destSht.Range("F2:F" & LastRow) = file
    Else
    destSht.Range("F" & destNewRow & ":F" & LastRow) = file
    End If
    End With
    wb.Close savechanges:=False
    file = Dir()
    Loop
    End Sub
    jdweng

  • Is there a way to address email (i.e. a word or some code) that would place that email in a specified inbox folder?  not using internal rule, rather the beginning of this sort happening as it comes in?

    is there a way to address email (i.e. a word or some code) that would place that email in a specified inbox folder?  not using internal rule, rather the beginning of this sort happening as it comes in?
    In other words
    I tell a friend if he is emailing me on a particular subject, is there something he can do at his end ([email protected]/research)
    like adding the word research at the end of my eamil address that would tell my inbox to place that in the inbox/research folder?
    If I have to use a rule on my end, then do I tell him to just place the word research in the subjct line and then I write a rule to place anything with the word research in the subject line in my inbox/research folder?
    will the subject line be required to only have the one word research to work, or will the rule look for any presense of that word in the subject line?
    thanks
    eric

    iCloud email supports 'plus' addressing. http://en.wikipedia.org/wiki/Email_address#Address_tags
    So your friend could just add '+research' to the username part of your email address, and you setup a rule at icloud.com to put all emails sent to that address into a particular folder.
    For example:
    [email protected]
    There's no way to do it without rules on the server though.

  • Migration of code from one instance to another instance

    Hi OAF Team,
    i want to migrate the (OAF)code form one instance(test) to another instance(Dev), what is the procedure and how can i migrate from one instance to another instance.
    could you please solution for this.
    Regards,
    Muthu

    Hi
    General procedure is to zip all the java & xml page files and copy to dev instance. Then you can write a shell script to extract the zipped files and place it in appropriate locations.
    If there are any AOL objects defined by you, then you need to include that in shell script
    Regards
    Ravi

  • How difficult would it be to write a code that prevents sites from changing your homepage wtihout u knowing it happened?

    Today I had the unhappy experience of a company or site I visited that installed three programs I didn't want. I uninstalled all of them in windows control panel (]remove programs). This however did not solve my problem.....no matter what I did I could not get startpage to come back. I did many things like go to tools and options and type it in close out and open and it was still not there. Finally my grandson uininstalled Firefox and reinstalled it and it was back.
    My question is: Can you not write a code in the software that prevents this from happening and when people install Firefox ask them if they want this feature or write an ad on. Please this problem grows every day it gets worse. Before all you had to do is change it back now one can not get rid if it so easily.
    We really would love this feature ask anyone.
    Susan and TY for listening.

    Thanks You for your feedback. However this is support forum, You should suggest new features trought ''Help -> Send Your opinion'' or [https://input.mozilla.org/pl/feedback/firefox/31.0/ this website].
    By the way there is method described in [http://kb.mozillazine.org/Locking_preferences this support article], maybe someone using Windows will write user friendly guide how to do it.
    All I can tell you is that you have to lock ''browser.startup.homepage'' to ''about:home''

  • Is there a way to create my own app store that I can share with employees? I'm thinking apps that we've identified as important or needed, all in one place.

    Is there a way to create my own app store that I can share with employees? I'm thinking apps that we've identified as important or needed, all in one place.

    Not exactly your own app store, but close.  Apple has an App Store Volume Purchasing Program for Business > http://www.apple.com/business/vpp/
    It allows you to purchase apps in any quantity you desire and pay using a company credit card.  You will receive a spreadsheet of redeem codes which you distribute to your emloyees.  The program guide has complete information > http://images.apple.com/business/docs/VPP_Business_Guide_US.pdf

  • How to write a code for  open new txt file in swing

    hai all,
    now i do one project in java.that project's GUI is Swing. But i don't known swing (basic).So how to write a code for open new txt file and "Open window " in menu item on swing.that means when i click the "New" on menu that time open a new txt file. open also like that type.
    plz give me that code ! very urgent
    Advance Thanks !
    RSK

    Swing Tutorial:
    http://java.sun.com/docs/books/tutorial/uiswing/index.html
    Since you don't know the basic of swing read the tutorial, it is for your own good because it is useless if we provide you with a code you don't even understand and how it works.
    If you want a menu read the tutorial about using menus and for opening a file read using JFileChooser.
    note: don't use the word urgent because it implies that your problem is more important than others.

  • Write HTML code in webdynpro

    Hi All,
      Can anyone tell me how two to write HTML code in
      webdynpro application
    to make myself clearer. this is what i want.
    IWDTextView txt = (IWDTextView) view.createElement(IWDTextView.class, "txt" );
    txt.setText("<hr>" + "Today Order");
    But the above code is displaying literal string <hr> by the mean of &lt;HR&gt;
    regards
    Arun

    Hi Nibu,
      What I actually want to do is that- I have designed
    a view having order details one below other on same screen.
      What I want is to print the order detail page wise.
    i.e Ist Orderdetail on first page , 2nd Order detail on 2nd page and so on.....that is I want a page break.
    I got a code to provide a page break which is in javascript -
    <script>
    //<!--
    document.write("hi");
    document.write("<p style=\"color: blue; page-break-before: always\" >");
    document.write("hiafter");
    //-->
    </script>
    How 2 use this code in my webdynpro application.....or
    is there any other mean to do so.
    regards
    Arun

  • How can i write the code in xml publisher desktop

    hi all
    How and where can i write the code in xml publisher desktop ???
    shall i know how to write xml code or what ??
    in which part can i write the code if i have more than one query ?

    hi dear
    Thanks for ur replay...
    What i mean is : i used to work on reports builder,so :
    1- i used to create more than query in some reports.
    2- create formulas ,procedures....
    NOW i want to create the same reports by using xml publisher desktop, so how can i do that...
    when i use {color:#ff0000}report wizard{color}, i can not or i don`t know how to use more than one query, create formulas or procedures.
    Please help me.
    Thanks again.

  • How can I write HTML code in this forums

    Sorry but I didn't know where to post this thread.....
    How can I write HTML code in this forums?

    Hello,
    Every piece of code in your post should be wrapped with the forum tags [ code] and [ /code], without the blanks.
    In case of the &lt;a> tag, that is not enough. In this case, you have several options. The most elegant one is to use the entity name for the less-then sign - & lt; - without any spaces. Other options is to add a space between the less-then and the ‘a’ character (and make a note of it) or change the less-then character with a left bracket one.
    When posting code, you should always use the forum preview option, just to make sure the forum software “understood” your code correctly.
    Hope this helps,
    Arie.

Maybe you are looking for

  • Installing SAP EP on windows Vista

    Hi, I am new  to SAP EP, I have a m/c with windows vista installed and good hardware configuration.  I want to install the SAP EP components available on the downloads section of SDN site.  In the requirements section I do not see any mention of wind

  • Have problem wiht "Deploying The SRDemo on WebLogic Servers"-Shay Shmeltzer

    hi : I have read "Deploying The SRDemo ADF Sample Application on WebLogic Servers " Written by Shay Shmeltzer in the link :http://www.oracle.com/technology/products/jdev/howtos/weblogic/deployingwls.html i follow the step in the file :but i can't fin

  • HD WD Green Caviar 500GB is compatible with iMac G5?

    hello, I installed hard disk WD5000AADS (500GB - SATA II) CAVIAR GREEN in iMac G5 17" iSight 1,9Ghz. with Leopard. It is hung in the starting with the gray apple. Why? I placed jumper in the pins 5-6 of the HD CAVIAR to turn it to SATA I, and nothing

  • Mathing record with partner code else all recoreds shown in '+'

    SELECT t.dnd_id, t.dnd_no, t.dnd_size, t.dnd_type, t.dnd_iso_code, t.dnd_carrier, t.dnd_pool_code, t.dnd_hub, t.dnd_booking_no, (SELECT agt_area_agt_code FROM tab_mdl_agent_cont_area WHERE agt_area_hub_code = t.dnd_hub) vwagtcode, t.dnd_bl_no, t.dnd_

  • Mapping values on CRM

    Hi, I'm new on CRM and I'm trying to mapping values from KNA1 table in R/3 system to crmm_but_frg0041 table on CRM system. The fields on CRM system are ATTRIBUTE, ATTRIB_2 and ATTRIB_3. I thinks this is possible to do with BDOCs. My question is, whic