Creating multiple instances of a custom taskflow: how?

I use JDEV 11.1.1.5.0 and we use WebCenter PS4.


Our previous developer created a calendar countdown / count down timer. When I try to create a copy of it from within Web Center Mashup > task flow page I have a few problems:

1. If I change the settings of task flow, such as the title or the time format (minutes, hours, or days are the options) - these changes do not appear on the page itself. He always uses the same values as the original task flow that I copied from.

2. I've noticed that in the Page Fragment and the definition of the taskFlowId Page points to "/ WEB-INF/ScheduleWidget #ScheduleWidget. Id = "' is the same for each completed copy of the original workflow."


What I would do, is to have the ability to create multiple instances of this workflow even at the breast of a single space, but right now they are the only things that stop to occur.

Hello

JavaScript does not have workflows and so is not isolate the invocations to son. Bottom line is that your use of JS must be improved.

Actually what you are calling a single JavaScript function, which will exist only as a single instance on the page. What you need to do is rather than for each call JS workflow, you must create a separate JS object that is then used with this workflow. Ultimately you would have as many instances created JS object as task on one page (at the moment you don't have that, and instead, you use a single variable). As I see it, what you have to do is

-for starting workflows, call JS in Java (or a region controller)
1. create a new object ' cdtime ($(this) new.attr("id"), ' ${pageFlowScope.counterDate} ");
2. register the object in a variable of page with a key identifying the workflow as it is used with/for the
-Workflow then use you the client listener to access the timer for this workflow. For example, you can pass an argument to the JS function so that he knows which instance of timer for your registry level JS page object (probably a map)

Frank

Published by: Frank Nimphius, February 23, 2012 10:33

Tags: Java

Similar Questions

  • Unique VO shared by multiple instances of the same taskflow

    Hello Experts,

    Need your expert opinion to this problem. I have a VO that is used to display the details of the master-child table on page jsff (say it as a Page of country-state).

    The user comes to the jsff by taskflow launch page, passing a search results table (say it as countries search result). I have provided hypertext links in the table of countries so the user can click on the name of country and go to the country-state page.

    Occurs when the user clicks on the links from different countries and thus to open several pages of country-state jsff. In this case, all the pages pointing to the same country-state record.

    Example; Search country table has three rows - India, China, Japan. User clicked on the India, China and Japan of the Web links provided in the table. He opened 3 pages of the table of State of the country. But all these pages show details of the Japan as he was finally activated.

    I'm new to ADF and it's the first assignment . I learned and put in place through blogs on the internet but stuck here now.

    Appreciate any help.

    PS - I've seen a few articles mentioning to create multiple instances of VO, but my problem is that I don't know how many instances of create. Because it depends on how many times users click on hyperlink and launch taskflow.

    Kind regards

    Newbie

    This is not a property of the vo but the workflow. Please watch this http://www.youtube.com/watch?v=SHfilCAVzTs video that shows the concept.

    Timo

  • BPEL is create multiple instances of a single HTTP OSB call

    Hello

    Here, I describe how looks like my flow of integration.


    (1) proxy OSB service calls service BPEL (HTTP protocol for help)

    (2) BPEL called two services to OSB using HTTP calls (these two OSB services will insert the data into two tables)

    (3) according to my testcase an OSB service should be managed and second service OSB must fail, so any integration does not work as expected

    (4) but the second OSB service takes 2 minutes when inserting data into the database

    (5) in 2 minutes BPEL is creating an instance more

    How to stop creating multiple instances.

    Thank you and best regards,

    Harsha.

    Automatic recovery is enabled by default in bpel, you can try catch the fault. You can also change the value of MaxRecoverAttempt please go through this link: https://svgonugu.wordpress.com/2013/05/08/auto-recovery-feature-in-bpel/

    Kind regards

    Anshul

  • Click and drag the shape tool creates multiple instances (w / photos)

    When I click on and drag a shape tool, illustartor creates multiple instances of the object, such as a card when you earn solitare.

    No idea what could cause this?

    Is your tilde ~ key down, or you have any plug ins installed that may be corrupt you system?

  • How to avoid creating multiple instances of the application?

    Hello

    We have a user interface Application. The application has been set to Auto run at startup and as a Module system.

    The application has a file listener that checks all new emails.

    When we start the application from the user interface by clicking on the application icon, it seems that the multiple instance of the application is created. For this reason when send us an email to request it is receiving emails several times. Sometimes simple, double and sometimes even five times.

    public class MyApplication  extends UiApplication implements FolderListener,
            SystemListener, GlobalEventListener {
    
        // Boot
        public static void main(String[] args) {
            if (args != null && args.length > 0 && args[0].equals("gui")) {
                // code to initialize the app
                fromService = false;
                // register the notification
                Notification n = new Notification();
                n.registerNotificationObjects();
    
                Utilities.writeLog(GUID, "MyApplication GUI Starting up");
                MyApplication service = new MyApplication();
                service.enterEventDispatcher();
            } else {
                Utilities.writeLog(GUID, "OnBoardV2 Service Starting up");
                MyApplication service = new MyApplication();
                service.enterEventDispatcher();
            }
        }
    
        public void messagesAdded(FolderEvent e) {
            /// Receive messages
            }   
    
    }
    

    In this regard, any help will be apreciated!

    Thank you

    I don't know if it's your entire code, but if you register your application as a file time listener never, it is called, then you save several headphones. The listener does not cause deleted your app closes, you must explicitly remove the listener. You must either put the listener in its own class and only sign up to start or find a way to check if the listener is already registered whenever the application is called.

  • Error-could not create an instance of the custom function

    Hello

    I'm trying to implement an extension of the simple custom function OPM 10.2. Here is the code:
    package com.oracle.determinations.examples;

    import com.oracle.determinations.engine.CustomFunction;
    import com.oracle.determinations.engine.EntityInstance;
    import java.util.Random;

    SerializableAttribute public class RandomFunction extends CustomFunction {}
    public Object evaluate (EntityInstance entityInstance, Object [] items) {}

    If (items [0] == null) {}
    return 0;
    } else {}
    -Code to generate a random number
    }
    }
    }

    The xml extension is the following:
    -< extension >
    -< features >
    -name of the function = "RandomFunction" type return = 'number' >
    < name arg = "enterednumber" type = "number" / >
    < Manager platform = 'java' class = "com.oracle.determinations.examples.RandomFunction" / > "
    < Manager platform = "dotnet" class = "com.oracle.determinations.examples.RandomFunction" / > "
    < / feature >
    < / functions >
    < / extension >

    I placed the code extension xml under the Development\Extensions\Examples folder and the jar file named "JavaLibrary1" containing only the above mentioned code is under Development\Extensions\Examples\lib.

    The rule that calls the custom function is as follows:
    the random number = RandomFunction (figure)

    I get the error "Unable to create year instance of com.oracle.determinations.examples.RandomFunction" when I debug the project.

    Please tell me how to solve this problem.

    Thank you
    JAS

    Received your email and found the problem. The problem is the custom .NET, function definition is invalid, and must be (or must be removed).

    When you are debugging with screens, it uses a combination of dosages of Web for Java and the host of the debugger, which takes place in .NET. Although the modules runs into reality in the determinations of web, the debugger needs always to be able to open the modules locally for purposes of reflection (eg. obtaining a list of all possible attributes and the type of data). Even if the modules is not actually executed in .NET, it must therefore be loadable, which means that if you do not provide a custom function .NET Manager, it must be valid. This:

    >

    >

    Does not appoint a .NET class, that's why the debugger complains. Delete this line (only the Manager of java leaving intact) and your example works.

    >
    You also mentioned that the random function is not a good choice, that means that the engine of dosage will not work with the random function?
    >

    Yes, a random function will not work because the engine must be (and is optimized to be) deterministic - same entry should always produce the same result.

    It is difficult to imagine what you can in theory of random numbers for (otherwise), but if you don't need, you may either) front of seeds new sessions with random inputs as attributes of basic (requires customization of your host application, for example, web determinations) or b) generate the random number from other values in your modules such as the customer, name and date of birth. This should ensure that the same combination of inputs will result in the same number of 'random' each time.

  • On the task bar of Windows Explorer post work without creating multiple instances of explorer.exe.

    Hi, I tried the workaround solution where you enter "%SystemRoot%\explorer.exe: {20D04FE0-3AEA-1069-A2D8-08002B30309D}" in the target.  However, this doesn't seem to be a full working solution because it creates an instance of "explorer.exe" whenever you access.  I want a solution that allows me to open the 'Workstation' of the taskbar that creates instances fallacious "explorer.exe" (it should stay onlya singleinstance of explorer.exe).

    BTW, no, I don't want to pin 'my computer' icon so I have to hover over windows Explorer and then proceed to my computer.  I want the default location in Windows Explorer my computer and no libraries (which had the idea to do this? this person is a fool, because the majority of people never use libraries)

    -Dan

    Another alternative - using a VBScript script to launch my folder on the computer.

    Copy these lines into Notepad and save the file as "MyComputer.vbs".

    Set objShell = CreateObject
    objShell.ShellExecute "shell: MyComputerFolder ', ' ', ' ', 'open', 1

    Create a shortcut to the script including the full path, as below:

    C:\Windows\System32\wscript.exe "D:\MyScripts\MyComp.vbs."

    Change the shortcut icon, and then PIN to the taskbar.

    How is it a better alternative?

    The script takes 3K of memory (max) and duly ends after launching the folder desktop. It's better than the original situation where each instance explorer.exe taking 20 + K of memory and not end automatically.

    Ramesh Srinivasan . The Winhelponline Blog
    Microsoft MVP, Windows desktop experience

  • Create multiple instances of a symbol in AS3

    Hello

    When we create several instances of the same symbol, can we instantiate using a single variable, or is it mandatory to use a different variable the instance?

    In the following example, the "var c:Circle" is used 10 times to instantiate the symbol of the MC.  How can those be changed or removed one by one, if all instances refer to the same variable name?

    var totalCircles:uint = 10;
    var i: uint;
    for (i = 0; i < totalCircles; i ++)
    {
    Create a new instance of circle.
    var c:Circle = new Circle();
    Place the new circle to a coordinate x which will be space circles
    evenly on the stage.
    c.x Fokker-built = (stage.stageWidth / totalCircles) * i;
    Place the instance of circle to the vertical center of the scene.
    CY = stage.stageHeight / 2;
    Add the instance of circle to the current timeline.
    addChild (c);
    }

    In your loop 'for', you do not have to declare the variable 'c' with each pass of the loop. Instead, you can declare it out of the loop, as you do your 'I' variable:

    var c:Circle;

    for (i = 0; i< totalcircles;="" i++)="">

    Create a new instance of circle.

    var c = new Circle();

    Then, given that you reuse the variable 'c' for each passage, as you have probably guessed, you cannot reference all your objects with the same variable (with the exception of the one created last) once the loop over. What I usually do and suggest, is that you put all your objects in a table for ease of access after instantiation:

    var circleHolder_arr:Array = [];

    var c:Circle;

    for (i = 0; i< totalcircles;="" i++)="">

    Create a new instance of circle.

    var c = new Circle();

    circleHolder_arr.push (c); This adds each instance to the table

    ... And when you want to do something, like delete all of your circles:

    function removeCircles(e:MouseEvent_=_null):void {}

    for (var i: int = 0; i< circleholder_arr.length;="" i++)="">

    removeChild (circleHolder_arr [i]);

    This is where you could also do other things, for example to remove earphones events and other items of battery memory

    }

    }

    btn.addEventListener (MouseEvent.CLICK, removeCircles);

  • Instead of creating multiple Instances, I want to create a single Instance.

    Hello world

    Hello how are you.

    I have a requirement to transfer files from one place to another place, I am able to do this successfully by using FTP adapters.

    I have a few questions please help someone.

    (1) when I deployed my process it will create a forum for the transfer of a single file, suppose if I have 50 files in my Get
    Create directory after deployment of the 50 instances process and 50 email generating files saying are not tranfered successfully.
    Instead of creating 50 Instances, I want to create a single Instance.

    (2) when the files are not transferd will trigger error messages saying that no success (I want to display the names of files (not tranfered files) in my mail, IE, whatever files are not tranfered, need to diplay by post).

    (3) and I am not able to transfer files with size 0, but in Instance of Console BPEL is create for 0 size file also and I get Email to succeed... and in the updated directory 0 file size does not appear. (Instance creates and come to success Email but the file is not exist in the directory of Put)

    Please help me.

    Concerning
    Vincent

    Published by: user10263255 on October 1st, 2008 08:10

    Published by: user10263255 on October 1st, 2008 09:15

    Vnkat,

    Use this one:

    http://orasoa.blogspot.com/2007/05/create-singleton-process.html

    Thank you best regards &,.
    Diakité

  • Why would I want to create multiple instances of a class or an apprenticeship program?

    We are working through a first trial of Captivate and have a little trouble understanding the system. If I create a course (which we did) why would we create instances of a class or an apprenticeship program? The help file does not explain why we want to do, it only tells us how.

    Hi Kodiak100.

    I can offer an answer regarding my own experience. For me the instances used mainly separate activity of the learner and activity courses; What about as well as the analytical organization.

    If you run reports on a single instance of a single course, you will need to filter this course reporting, using the fields available in the creation of custom reports. However, a separate instance of this course allows you to enter a selected population of learners. This may or may not be a filter available in the creation of custom reports.

    Perhaps the most useful part of a new instance is that you can use an existing course, which may have been some time to assign a for other users 'new' learning event and set the new expiry dates, reminders, etc.. For example, if you assign a class to a group of learners in March, and then the same course to a group in October, using a new instance avoids duplicating the same course, but allows a separate calendar, notifications and reports on the same, re proposed content.


    In addition, a separate instance allows you to set alerts, patches, and groups.

    It all depends on how your organization will use first.

  • Volume mixer creates multiple instances of application

    I am running windows7 64 bit...

    Apllication for after effects cs4 32 bit creates a new instance every time I use the volume mixer to fight against it... and it delete or refresh after aftereffects is closed... How can I remove the additional instances?
    The rest of the applications are working fine...

    Hello

     
     
    The question you posted is more appropriate for the Adobe help support forum so I suggest you to post the question on the Adobe support forum help for assistance. Check out the link to send the same.
    http://www.Adobe.com/support/
     
     
    Thank you.
  • Multiple instances of component loader

    Hi everyone, I'm having some problems with the loading component... I am trying to create multiple instances of dynamic loader, but only the last instance shows. I can not understand how to solve this... I already tried to use duplicateMovieClip and he also didin't work.
    This is the code I use, thanks in advance!


    Thank you to all the world, I found the problem.

    old code:
    createClassObject (mx.controls.Loader, "tempLoader" + i, 1, {contentPath: images [i], scaleContent: true, width: 80 height: 60, _x: ((Stage.width-10)-80), FLF: (I * 70)});

    new code:
    createClassObject (mx.controls.Loader, "tempLoader" + I, I, {contentPath: images [i], scaleContent: true, width: 80 height: 60, _x: ((Stage.width-10)-80), FLF: (I * 70)});

    It was o depth problem

  • Re-defining a variable for multiple instances

    The code below is inside a loop to create multiple instances of a class that place markers on the scene. The event handler opens a panel of information when a marker is clicked the first time and closed when you click the second time. However, I want to set the value of fenetreouvrir to false for all markers every time a window is closed. My problem is that I don't know how to create a loop for this.

    You might be able to make the fenetreouvrir a marker property itself (encapsulation) and let the marker to manage internally what you describe. Setting fenetreouvrir to false for all the markers might be a marker class method.

  • How to force multiple instances of a process or program to run under XP?

    Sometimes, several instances of a program can execute without the user does something special, for example, you can open several instances of the Adobe Reader software if you click on the names of different files (but if you click directly on the .exe in Program Files XP opens just one instance).

    I am trying to run multiple instances of the Kindle for PC program, so I can display 2 different books or pages at a time. I guess that there is a way to do this by manually creating a shortcut or directly from the running of the KindleForPC.exe command line and play with command line parameters... someone knows it how?
    Thank you

    It really depends on how the application was written.  You can try to run as a different user and see if it works.  Right click on the shortcut of programs and select 'Run As.... "and use another user that the currently connected.  The user must have the appropriate privileges to run the program, for example a limited user may not be allowed to run the program or access any of its files or registry keys.

    John

  • How to avoid multiple instances of the application

    Hello

    I would like to know how I can to avoid multiple instances of my request, my application have an option to "invoke later" which will awaken the application after xx minutes but where the user clicks on the icon of the application, for example, a few seconds before he must wake up he will see 2 instances open my application.

    Currently, the work around I did is check at every opening, if there is already an open instance and if so to 'kill' later, but I would like to know if there is a more elegant way to do it.

    THX.

    You create a new ApplicationDescriptor - you say the BlackBerry OS that it is a new Application.

    If you use this method, and then the user clicks on the new icon, they will get also running two instances.  Here is a code that restarts the application 'running', that I think that it what you want.

    ApplicationDescriptor current = ApplicationDescriptor.currentApplicationDescriptor ();
    ApplicationManager.getApplicationManager (.scheduleApplication) (current, System.currentTimeMillis (+ 2001), true);
    System.Exit (0);

Maybe you are looking for