Implementing the IF_WORKFLOW interface into a custom class

In workflow tasks you can use ABAP Classes and their methods to implement functionality instead of always using BOR objects. I created a class with a static method and got it to work outside of my task. As soon as I put the class and method into my task it says I must Interface implementation IF_WORKFLOW does not exist.
Does anyone know how to do this?

Yep, my biggest mistake was looking in the help of my own version. Look in NW2004s:
http://help.sap.com/saphelp_nw04s/helpdata/en/02/527b42303e0e53e10000000a155106/frameset.htm
It applies all the way back to 620. Put IF_WORKFLOW into your interface and then define all the shiny new methods in your class. As long as you're only working with statics you don't even need to bother with all the LPOR stuff - just make sure to at least create all the methods (even if empty) to prevent dumps if WF tries to do anything with it.
Have fun,
Mike

Similar Messages

  • The XElement class explicitly implements the IXmlISerializable interface?

    I see a sentence on a training book.
    "The XElement class explicitly implements the IXmlSerializable
    interface, which contains the GetSchema, ReadXml, and
    WriteXml methods so this object can be serialized."
    I don't understand it. From
    the example, explicitly implements the IXmlSerializable interface is from a custom class rather than XElement class. Is
    MSDN wrong?

    I mean in the stackoverflow example,the class is a customized one "MyCalendar:IXmlSerializable"
    public class MyCalendar : IXmlSerializable
    private string _name;
    private bool _enabled;
    private Color _color;
    private List<MyEvent> _events = new List<MyEvent>();
    public XmlSchema GetSchema() { return null; }
    public void ReadXml(XmlReader reader)
    If XElement is a class that implements IXmlSerializable, what is the detail then?
    public class XElement : IXmlSerializable
    public XmlSchema GetSchema() { *detail*?; }
    public void ReadXml(XmlReader reader){*detail*?}
    Any source code of XElement class?

  • Implementing the Serializable interface

    Hi guys,
    I have a conceptual question about implementing the Serializable interface - since it's only a marker interface (i.e. - it doesn't have any abstract methods) why does Java demand an object to implement this interface in order to be written into a file? What I'm asking is why wouldn't they make the writeObject method's signature
    public void writeObject(*Object* o)
    so any object can get in? What is the point of forcing a class to implement an interface in order to enable it to be written to a file?

    So that serialization requires the explicit consent of the class or superclass/superinterface.

  • Does not implement the NamespaceHandler interface

    I depoly a war file and get following errors. This project does not contain jar files related with spring.
    BUILD FAILED
    weblogic.Deployer$DeployerException: weblogic.deploy.api.tools.deployer.DeployerException: Task 0 failed: [Deployer:149026]deploy application smap.war on AdminServer.
    Target state: deploy failed on Server AdminServer
    java.lang.IllegalArgumentException: Class [org.springframework.scripting.config.LangNamespaceHandler] does not implement the NamespaceHandler interface
         at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.initHandlerMappings(DefaultNamespaceHandlerResolver.java:119)
         at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.<init>(DefaultNamespaceHandlerResolver.java:96)
         at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver.<init>(DefaultNamespaceHandlerResolver.java:83)
         at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createDefaultNamespaceHandlerResolver(XmlBeanDefinitionReader.java:498)
         at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createReaderContext(XmlBeanDefinitionReader.java:487)
         at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:468)
         at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:363)

    Hi,
    I am not sure - given the information you provide - that you posted to the right forum
    Frank

  • Why the ArrayList implements the List interface

    Why the ArrayList implements the List interface even though it extends the AbstractList class. Is it only for clarity of interface implemented?

    899440 wrote:
    Why the ArrayList implements the List interface even though it extends the AbstractList class. Is it only for clarity of interface implemented?I dont think there's any specific reason for that. In my opinion its redundant. May be its added for clarity so that from the documentation its obivous that ArrayList implements List.
    May be there's something which I am missing regarding this?

  • How the ORG_ID pass into OM Customer Search

    Hi all,
    I need some help for understanding how the ORG_ID pass into OM Customer Search (navigation OM Supper User >> Customers >> Summary).   We currently have MOAC settup with that responsibility.
    1. In R12 how the ORG_ID passing into each session, is it through FND_GLOBAL.APPS_INITIALIZE or MO_GLOBAL or?
    2. How can I see the runtime ORG_ID inside HTML or Forms.
    3. What is the function and package MO_GLOBAL.ORG_SECURITY in dba_policies for object_name like 'HZ_CUST%' mean?
    The result of searching is so inconsistent, sometime able to search customer but sometime are not, event it is the same address?
    Thank you.

    I have reviewed those note before.  I performed tested in sqlplus and it work as I expected but within HTML page through multiple responsibilities.  the search sometime work sometime not work.  I really want to know.
    1. How the ORG_ID passing through each session.  As far as I know the "FND_GLOBAL.APPS_INITIALIZE" no longer setting the operation unit in MOAC but rather than the MO: Default Operating Unit at the user level or responsibility level.  Is that mean when I switch responsibility it will perform a) cal FND_GLOBAL.APPS_INITIALIZE b) lookup profile value for MO: Default Operating Unit?
    2. What is the function and package MO_GLOBAL.ORG_SECURITY does?  Should I see that execute when I switch the responsibility every time?
    3. How can I validate the ORG_ID that passing into each session HTML page?
    I am confused because it is inconsistent.
    Thank you.

  • Why the HashMap implements the Map interface twice

    See the type hierarchy below:
    HashMap<K,V>
    &#9475;
    &#9507;AbstractMap<K,V>
    &#9475;&#9475;
    &#9475;&#9495;Map<K,V>
    &#9495;Map<K,V>
    The HashMap extends AbstractMap, which implements Map. So the HashMap has already implements Map, and has the Map type. But the HashMap's declaration still contains "implements Map".
    So why the HashMap implements the Map interface twice?
    Thanks in advance.

    georgemc wrote:
    Maybe the guy who wrote HashMap wanted to make it clear that HashMap implemented Map, rather than rely on you looking further up the hierarchy to find outYes, it does make the Javadoc clearer. If they hadn't done that then there would have been legions of newbies who couldn't tell that HashMap implemented Map and thousands of "I have a doubt, does HashMap implement Map" questions here.

  • What are the benefits of converting my custom class into Data Control?

    Hi,
    I have developed my own custom class which implements no of methods for execution of Business Logic. Now I have two ways to use the same -
    *1. Create and instance of the same (wherever required) and call those methods.*
    *2. Expose the class as Data Control.*
    I want to understand which methods/technique is better and why?
    Does creating that class as Data Control provides me better performance any other benefit.
    Thanks in Advance,
    Amit

    Hi,
    1. You use this if you don't want to use ADF bindings to access the business logic (e.g. to build input forms or table for it)
    2. You use this when you want to work with ADF. Additional benefits you gain is that you can specify UI control hints on the generated metadata, apply validation rules that are consistently applied to all uses of the POJO class. In addition you don't need to handle class instantiation and dismissal yourself anymore as the ADF framework takes care of it.
    The base line though is "no data control - no ADF binding"
    Frank

  • A java List that implements the Stream interface?

    Hello,
    I just took some time to start looking into the java-8 buzz about streams and lambdas.
    And have a couple of questions...
    The first thing that surprised me is that you cannot apply the streams operations,
    like .map(), .filter() directly on a java.util.List.
    First question:
    Is there a technical reason why the java.util.List interface was not extended with
    default-implementations of these streams operations? (I guess there is...?)
    Googling a bit, I see lots of examples of people coding along the pattern of:
        List<String> list = someExpression;
        List<String> anotherList = list.stream().map(x -> f(x)).collect(Collectors.toList());
    which becomes very clumsy, if you have a lot of these stream-operations in your code.
    Since .stream() and .collect() are completely irrelevant to what you want to express,
    you would rather like to say:
        List<String> list = someExpression;
        List<String> anotherList = list.map(x -> f(x));
    What I first did as a workaround, was to implement (see code below)
    a utility interface FList, and a utility class FArrayList (extending ArrayList with .map() and .filter()).
    (The "F" prefixes stand for "functional")
    Using these utilities, you now have two options to create less clumsy code:
        List<String> list = someExpression;
        List<String> anotherList = FList.map(list, x -> f(x));
        List<String> thirdList = FList.filter(list, somePredicate);
    or better:
        FList<String> list = new FArrayList<String>(someExpression);
        FList<String> anotherList = list.map(x -> someFunction(x));
        FList<String> thirdList = list.filter(somePredicate);
    My second question:
    What I would really like to do is to have FArrayList implement the
      java.util.stream.Stream interface, to fully support the java-8 functional model.
    Since that involves implementing some 40 different methods, I would just like to know,
    if you know somebody has already done this kind of work, and the code is
    available somewhere as a public jar-file or open-source?
        public interface FList<T> extends List<T> {
            public static <A, B> List<B> map(List<A> list, Function<A, B> f) {
                return list.stream().map(f).collect(Collectors.toList());
            public static <A> List<A> filter(List<A> list, Predicate<A> f) {
                return list.stream().filter(f).collect(Collectors.toList());
            default <R> FList<R> map(Function<T, R> f) {
                FList<R> result = new FArrayList<R>();
                for (T item : this) {
                    result.add(f.apply(item));
                return result;
            default FList<T> filter(Predicate<T> p) {
                FList<T> result = new FArrayList<T>();
                for (T item : this) {
                    if (p.test(item)) {
                        result.add(item);
                return result;
        public class FArrayList<T> extends ArrayList<T> implements List<T>, FList<T> {
            private static final long serialVersionUID = 1L;
            public FArrayList() {
                super();
            public FArrayList(List<T> list) {
                super();
                this.addAll(list);

    I believe SSH and telnet are used for interactive command line sessions, don't know how you want to use them in a program.

  • Problem : Implementing the TreeModel interface

    I'm trying to implement MYTreeModel interface.
    It's to convert my DOM to a treemodel.
    (i have readed the tutorial about that but i don't use an adapter class. I have ONE class that implements javax.swing.tree.TreeModel and i have implemented the methods)
    All work exept the toString method.
    I suppose that a process is calling the toString method to display the string into the JTree.
    who is calling the toString Method ?
    Where can (must) i overload this method ?
    For the moment, my overloading of the toString method
    don't work !! (-> my tree is correct exept the string)
    Any idea or help is welcome.
    Thanks in advance.
    Here is a part of my code :
    public class DomTree implements javax.swing.tree.TreeModel {
    private Document mDom_O;
    // Constructor - Creates new CDomTree
    public DomTree(Document Dom_O)
    mDom_O=Dom_O;
    public Object getRoot()
         return mDom_O;
    public boolean isLeaf(Object aNode_O)
         org.w3c.dom.Node Node_O=(org.w3c.dom.Node) aNode_O;
              if (ChildCount(Node_O) > 0) return false;
    else                              return true;
    public int getChildCount(Object parent_O)
         org.w3c.dom.Node Node_O=(org.w3c.dom.Node) parent_O;
    return ChildCount(Node_O);
    public Object getChild(Object parent_O, int index_i)
         org.w3c.dom.Node Node_O=(org.w3c.dom.Node) parent_O;
    return Child(Node_O,index_i);
    public int getIndexOfChild(Object parent_O, Object child_O)
         org.w3c.dom.Node PNode_O=(org.w3c.dom.Node) parent_O;
         org.w3c.dom.Node CNode_O=(org.w3c.dom.Node) child_O;
    return index(PNode_O,CNode_O);
    public int ChildCount(org.w3c.dom.Node aNode_O)
    public org.w3c.dom.Node Child(org.w3c.dom.Node aNode_O,int SearchIndex_i)
    public int index(org.w3c.dom.Node aNode_O,org.w3c.dom.Node Child_O)
    public String toString()
    *****************************************************************

    The JTree calls the toString() method of the object in the tree, not the toString() method of the TreeModel. So in your case, that would be the toString() method of the org.w3c.dom.Node object. That is what you would have to subclass.

  • How to implement the ItreeIterator interface

    I'm developping a crawler service using EDK5.0.1 with a 4.5WS portal.
    To develop a crawler, I also developped a sci page which is included in a Crawler Wizard.
    In the sci page, there is a scitreeElement. To create scitreeelement, I implemented ItreeIterator interface and ITreeIteratorNode interface.
    After develpping the crawler, I added remote data source, and tried to add remote crawelr but the sci page appear with empty page(I just can see the title of sci page, but not content which includes scitreeelement.)
    I checked 'TCPTrace' and I could see the class which is a implementaton of ItreeIterator is wrong.
    I think I implemented that interface with a wrong way, but i don't know what is right way. If someone knows or has experience to implement ItreeIterator interface, please advice me.
    If someone want to see my code, I can send it.
    Thanks,

    When you say the trace shows the ItreeIterator is wrong, do you mean it's not the correct class name or that there is an error coming back? If error, what's the message in the trace?
    ross

  • How to implement the following code into jsp

    import java.io.File;
       import javax.swing.*;
       public class Dirs {
         public static void main(String args[]) {
           SwingUtilities.invokeLater(new Runnable() {
             public void run() {
               JFileChooser fileChooser =
                      new JFileChooser(".");
               fileChooser.setMultiSelectionEnabled(true);
               fileChooser.setFileSelectionMode(
                      JFileChooser.FILES_AND_DIRECTORIES);
               int status = fileChooser.showOpenDialog(null);
               if (status == JFileChooser.APPROVE_OPTION) {
                 File selectedFiles[] =
                     fileChooser.getSelectedFiles();
                 for
                   (int i=0, n=selectedFiles.length; i<n; i++) {
                         System.out.println("Selected: "
                            + selectedFiles.getParent()
    + " --- "
    + selectedFiles[i].getName());
    System.exit(0);

    You don't, it's Swing code, client side only. The JFileChooser will open up a file dialog used to open or save files on the client machine: you have no access to the client filesystem from a jsp.

  • Implementing the BADi QISR1 into the Adobe Form ISR_FORM_SPSP

    Hello experts,
    I need to trigger the BADi QISR1 when an adobe form is saved. This adobe form belongs to the scenario SPSP and it's called IRS_FORM_SPSP
    Does anybody knows how to Implement this BADi and insert my code so it can be triggered by the adobe form?
    Thank you very much in advance,
    ArepaKing

    This was answered by using the FM accessible through the transaction QISRSCENARIO

  • Cann't extend a inner class where as can Implement a nested Interface

    i cann't extend a inner class in some other outer class . Where as i can implement the nested Interface in some other class. Why????
    for example:-
    class ABC
    class Inner
    /* class body */
    interface TempInterface
    /* interfacebody */
    class OuterClass
    class InnerTwo extends ABC.inner //(line 1)Will give error
    class InnerTwo implements ABC.TempInterface //(line 2)Will run fine
    the line 1 is going to give compilation error i.e not in the scope but the line 2 will run fine .
    Both of the things are in the same class but giving 2 other results.
    I am not getting sufficient reasons for it.
    Can any one help me????
    Reagrds
    Arunabh

    As far as the language is concerned, the classonly
    exists in the context of an instance of theenclosing
    class.This still exhibits a class/object confusion to me.
    It should be 'instance only exists ...' or 'instance
    can only exist'. The class only exists in the
    scope of the enclosing class, but this is another
    issue.I'm not following what you're saying. The second sentence sounds like you're disagreeing with me. The last sentence sounds like you're agreeing with me.
    A non-static nested class is an instance member, just like an instance method or instance variable. As such, as far as the language is concerned, that class only exists in the context of an instance of the enlcosing class.It's not just instances of the nested class--its the class definition itself that only exists within the context of an instance of the enclosing class. That's why you have to do anEclosingIntstance.NestedClass and can't do EnclosingClass.NestedClass.

  • Tween in custom class

    I'm a relative flash/actionscript newbie. I created a towers
    of hanoi solution moving movie clips around using Tweens. This all
    worked great when the action script containing the Tween creation
    existed on what I guess is the root movie clip (within the Action
    script window of my .fla file).
    I tried moving the hanoi solution into a custom class
    (extending EventDispatcher) and now the tween does not 'run'. I've
    stepped through my code with the debugger and added plenty of trace
    statements and am pretty sure all the arguments to the Tween
    constructor are correct.
    _currentTween = new Tween(_movingDiskMc, "_y",
    Regular.easeOut, _movingDiskMc._y, _yMin, _duration);
    Is there something fundamental I'm missing? Is the frame rate
    an issue with the custom class? The value of _duration above is 5.
    thx
    - Kurt

    ahhhh.... after further review found that my
    'onMotionFinished' event handlers were being called but in the
    debugger the scope is the Tween class not my Hanoi class. That's
    messed up
    found the discussion in the help topic regarding scope of
    event handlers and using the 'suggested strategy' things are
    working fine now

Maybe you are looking for

  • OS 9 unable to boot after running classic in OS X Tiger fro first time

    I have this problem with dual boot on an iMac 400 after upgrading the OS X to Tiger. After I install the Tiger, I tried to boot up from OS 9 is OK.I restarted in OS X and launch the classic environment, it performs some update to the System Folder an

  • What are the steps for ALE?

    Hi.. Can anyone explain me the steps to link two systems via ALE.? Thanks

  • How the Apple Store in Montreal refuses me my free case

    I try to get their hands on an iPhone 4 from at least 2 weeks and today I managed to get one at the Apple Retail store in Montreal (downtown) but an internal policy prevents Canada from Apple to activate a phone to a company account that is got to my

  • Portlet communication

    Hi, I have 2 portlets that communicate to each other (P1 listens to P2) The problem i have is that if in P2 i have a call to an action that doesnt exist in P1 then i get a pageFlow error from P1. Can anyone help me out here as im new to the weblogic

  • What version of Leopard is shipping?

    Can anyone who has purchased Leopard recently tell me whether he/she received 10.5.1 or 10.5.2 on the DVD? I've decided to what until 10.5.2 is shipping before ordering. In the European stores I see that the version is mentioned explicitly (10.5.1),