initialize the PostProcess event handler

Hello world

We develop a PostProcess event handler that loads a choice list values and to do a calculation based on the values of research and the parameters passed.

The Manager will have to face a lot of events, we are a little worried that the execution could get affected too (despite the asynchronous nature of the handlers).

Is it possible to precompute for example loading of research (which is always the same) and other calculations in an initialize() method so that the Manager is not obliged to all over again for each event?

Thanks for your help in advance!

To use the search in initialize the first you must instantiate full LookupOperation API to initialize and create a global variable to use the value during the life cycle of the event handler

It is not recommended "global variables should not initialize in this method.

Initialize method will be called only once during the event handlers loading, IE every time u start the server.

The object created in the initialize method will still be in memory. It depends on the size of your list of choices.

If it contains huge data not recommend you store it in the initialize method. As it will eat your memory.

__

When closing a thread like a response please do not forget to mark the messages correct and useful to make it easier for others to find their

Tags: Fusion Middleware

Similar Questions

  • The onDeactivate event handler does not work in InDesign CC. Why?

    Hi guys.

    I'm working on a script in Javascript for InDesign CC.

    The big problem is that the onDeactivate event handler does not work.

    Here is an example that works in InDesign CSx, but not in InDesign CC:

    #target indesign
    var w = new Window ("dialog", "Test onDeactivate");
    var et_1 = w.add("edittext", [undefined, undefined, 300, 30], "Lorem ipsum");
    var et_2 = w.add("edittext", [undefined, undefined, 300, 30], "Dolor sit amet");
    var st = w.add("statictext", [undefined, undefined, 300, 30], "CONSOLE:\r\r", {multiline: true});
    et_1.onDeactivate = et_2.onDeactivate = function(){
         st.text = "CONSOLE: I left the field with this text:\r\t«" + this.text +"»"; }
    var b_ok = w.add("button", undefined, "OK");
    w.show();
    

    The script displays a dialog with text edit fields window 2: when a field loses focus (by clicking on the other), the "CONSOLE" shows the text of the old domain.

    Adobe, please, solve this problem as soon as possible.

    Thank you.

    Giorgio

    This is a bug, and it has been reported. Please report it to yourself, more the better reports. It's no good Adobe invite you in this forum to fix something.

    Peter

  • stimulate the touch event handling in PRC?

    I want to stimulate the touch event in another application. can someone help me in explaining to me with a code example.

    I'll pass on this one, whenever I give you an answer to a topic, change you what you wanted in the first place.
    First of all, you wanted to listen to the event:
    http://supportforums.BlackBerry.com/T5/native-development/touch-does-not-fire-for-Q10/TD-p/3026980

    Second, you were finally made in the PRC:
    http://supportforums.BlackBerry.com/T5/native-development/touch-event-handling-in-CPP/TD-p/3027043

    Third, you asked to simulate a key event in this thread I made.

    Now, this isn't what you want, you want to simulate a click on a button.

    I'll let someone else answer that one.

  • postprocess event handler deployment

    Hello

    I modified the code in a post process (.java code) handler. How can I re - deploy the event handler.

    from where I can get the metadata.xml file handler and where to put this file?

    Thank you

    You don't need to run L'execution./weblogicimportmetadata.sh.

    Just put a few sysout in your code and you can see in oim_server1.out under > oim_server1/server/logs location.

    ~ J

  • Get the user that is executing Action in the Validation event handler

    I know you can get UserLogin actor using ContextManager.

    I would like to know if there is another for the user who executes the action (the actor) in a validation event handler.

    Ideally I'd like the usr_key of the actor.

    using the AuthenticatedSelfService api you can do. There is a methodgetProfileDetails(java.util.Set retAttrs)

  • Cannot find the appropriate event handler

    In the following code, I create 5 paintings where each canvas behaves like a button. Each canvas contains a text field and each canvas is movable. I want to trigger an event when the user drags on the side of the canvas, but on the contrary it is triggered as soon as I roll on the text field. You will see what I mean if you click on the text, and then drag the text to the side. It will trigger a trace.

    It is very important that I have only to raise an event when I drag the canvas, not the text. Is there an event handler that will make thios for me?

    Thank you!

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:mx mx:Application ' http://www.Adobe.com/2006/MXML "layout ="absolute"creationComplete =" init () "> "
    < mx:Script >
    <! [CDATA]
    Import mx.controls.Button;
    Import mx.controls.Image;
    Import mx.controls.Text;
    private var canvas2:Canvas;
    private var imageText:Text;
    [Bindable] private var thisButtonNumber:Number
    [Bindable] private var dragRectangle:Rectangle = new Rectangle (0, 0, 0, 300)
    private function init (): void {}
    for (var i: int = 0; i < 5; i ++) {}
    Canvas2 = new canvas;
    Canvas2.addEventListener (MouseEvent.MOUSE_DOWN, allowDrag)
    Canvas2. Width = 300;
    Canvas2.y = i * 30;
    imageText = new text;
    imageText.selectable = false;
    imageText.text = "Button" + (i) String;
    imageText.x = 130
    imageText.y = 5;
    Canvas2. AddChild (imageText);
    Canvas1. AddChild (canvas2);
    }
    function allowDrag(e:MouseEvent):void {}
    Canvas1. AddChild (DisplayObject (e.currentTarget));
    e.currentTarget.startDrag (false, dragRectangle);
    e.currentTarget.addEventListener (MouseEvent.MOUSE_MOVE, checkPosition)
    }
    function ROLL_OUTtest(e:MouseEvent):void {}
    trace ("ROLL_OUTtest =" + e.currentTarget)
    e.currentTarget.stopDrag ();
    }
    function checkPosition(e:MouseEvent):void {}
    e.currentTarget.addEventListener (MouseEvent.MOUSE_OUT, ROLL_OUTtest)
    }
    }
    []] >
    < / mx:Script >
    < mx:Canvas id = "canvas1" x = "400" y = "25" backgroundColor = "0xdddddd" buttonMode = "true" useHandCursor = "true" / >
    < / mx:Application >

    Try ROLL_OUT, MOUSE_OUT not

  • GUI - how to block the execution of the parent event handler

    Hello

    IM learning flex, I did my first http://www.narutogis.appspot.com/ app and have some problems with the events of the controls.

    my application is composed of canvas (as a parent) + 4 buttons + image (svg) and now:

    • When I click on one of the 4 buttons as their 'click on' events are triggered, but after that it also runs 'click' event of the canvas parent. I don't want this feature can I block sort of parent controls event handlers. SImple click on the button must execute only the button ' click on ' event, nothing more
    • When I click on the image it won't run "click event" canvas parent (reverse situation to that at the top) by clicking on the Image cntrol must execute the 'click' event Image and also parent canvas 'click' event

    You probably need stopImmediatePropagation()

    http://livedocs.Adobe.com/Flex/3/HTML/Help.HTML?content=events_08.html

    If this post answers your question or assistance, please mark it as such.

    Greg Lafrance
    www.ChikaraDev.com

    Flex development, training and Support Services

  • Rank Selector - how to set the onclick event handler?

    I have a set of master-detail forms and would like to respond to the onclick event of the line selector. When I go on the line selector column attributes I don't see anywhere to set the onclick event.

    The other elements of tabular presentation have a field 'Attributes of the element' that I use usually, but not line selector. I just missing something?

    I'm open to alternatives as well. The reality is, however, I do not need anything either complicated or sophisticated. When the user clicks on the box I collect data from the current row and initiate an AJAX call. I have to submit the page, etc.

    Thank you

    Brent

    I think the only way to do this is to use the package apex_item like this:

    http://HTMLDB.Oracle.com/pls/OTN/f?p=31517:170

    Standard line selector is not an option to fix the JavaScript to it.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    -------------------------------------------------------------------

  • Custom with the custom event handling/propagation class

    Hello

    I m trying to figure out, how we could extend a custom class so that other classes could enter the headphones to this custom class

    and will be informed by raising an event in this custom class.

    I can´t find any documentation about it. The post of oracle on the management of the event to

    http://docs.Oracle.com/JavaFX/2/events/jfxpub-events.htm

    doing business only about the event target and the string of events.

    But to my understanding, I need to know how this custom class could be extended to be an EventSource?

    I could extend my node, scene or window class to get all the things in the event by legacy, but I think that

    that is not the right way? Not everything is a node

    As indicated in the article

    If your control or element of your control is not a subclass of Window , Scene , or Node , you need to implement the EventTarget interface for this control or element.

    I must apply EventTarget and its method

    @Override
        public EventDispatchChain buildEventDispatchChain(EventDispatchChain edc) {
            throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
        }
    

    But it is a target? And the source?

    I m a bit confused.

    Help would be great for a beginner, some shooting events

    THX

    Inge

    Would what type of event you like fire? Perhaps using the framework of the event in javafx.event is more you need. What if all you want to do is to inform listeners that some State has changed, you should consider using javafx.beans.Observable or one of the classes implementing this interface.

  • Is it possible to set up the click event handler of reflow

    In my view, does not reflow in click events/actions.

    Example: I want to hide a rectangle at the click of a button and show it when you click on another. I want to do it on the same page and not imitate this action by loading another page with hidden rectangle.

    Hi Sujit-

    You are right. Reflow has support for the stationary, active flight and States of implementing at the point, but not clicking. To accomplish what you're looking for, you probably want to add javascript using another tool (Dreamweaver, cleats or one other editor) after you're done with the design of reflow.

    I hope that helps and thanks for the use of reflow.

    VIC

  • Bug: RichTextEditor 'Initialize' not classified as the event handler

    I'm trying to load the RichTextEditor control in a pop-up window. Here is my code:

    var rte:RichTextEditor = new RichTextEditor();
    
    rte.width   =  600;
    rte.height  =  500;
    rte.title   =  'Edit Text';
    

    I have to add the initialize event handler, so I can add a button to the toolbar (as on the model on the Adobe Web site).

    However, when I type:

    rte.initialize  =  "addSaveButton()";
    

    Flash Builder says this isn't valid as "initialize" is in fact a function that accepts no parameters.

    Compare this with:

    <mx:RichTextEditor initialize="addSaveButton()"/>
    

    Flash Builder recongises "initialize" as an event handler and therefore accepts the addSaveButton() function.

    Can anyone else confirm if this is a bug with the SDK or not? I can simply add the button outside the RTE for now, but then I wrap the RTE in a separate panel for the button, which is not ideal.

    Thanks in advance.

    Hello

    This is how to add the event listener

    rte.addEventListener (FlexEvent.INITIALIZE, addSaveButton);

    David.

  • Configuration in the event handler scripts

    Hi guys,.

    This is my first question here.

    Please forgive me if I have some grammar errors.

    I'm building a plugin for Photoshop CC which includes several scripts jsx and a Panel of the HTML of the CEP.

    In my plugin I would activate a script jsx on all the actions that the user is within the app.

    I managed to achieve using the Script event handler and parameters of my script to run the event "Everything" (see image below).

    My question is if anyone knows how I can configure my jsx script in the handler automatically during the installation of my plugin.

    I'm not talking about copy the script in the destination folder (settings presets/scripts /).

    The flow I'm looking for is as follows:

    1. The user install my plugin from https://creative.adobe.com/addons
    2. Activate user the plugin by going to Windows-> Extensions-> MyPluginName
    3. When loading my CEP Panel, he calls a script jsx (which is included in the plugin).
    4. The jsx (from the 3rd stage) script sets another jsx script (which is also included in the plugin) to operate on all the actions that the user makes the Photoshop app.

    I need an automatic solution to the fourth step. Anyone...?

    Capture.JPG

    P.s

    I am familiar with the events Manager.xml Script file, but the addition of my script to the list is a partial solution.

    I am looking for a fully automatic solution in the background.

    app.notifiersEnabled = true;
    app.notifiers.add( "All ",new File('path/to/your.jsx') );
    
  • How to add an event handler (to the click or mouseover) symbol on the timeline of the scene

    Is it possible to add an event handler on the main stage anime who controls a symbol?  Thus, for example, if you had several symbols on the stage, each with their own unique name, then on the main stage you wanted to add a list of event handlers specific to these symbols to affect a change when you interacted with this symbol.

    For example when you click on the symbol a few things happen here...

    (1) for (name of the symbol) click starts the animation of the symbol

    2) roll (symbol name) the symbol animation stops

    (3) the symbols background image is set on the main timeline.

    All this can be done easily on the symbol itself, but those is possible since the main timeline (scene).  Anyone know a solution?

    Yes

    1. Add jquery min CDN (https://code.jquery.com/jquery-2.1.1.min.js) to the script library (from the "Add js to URL" option.

    2. in the compositionReady event handler try something like that - the "many event handlers section" located here: http://learn.jquery.com/events/handling-events/

    Code example

    item = sym.$("btn");

    Element.on ({}

    MouseEnter: function() {}

    Do something

    Alert ("gliding on a div");

    },

    MouseLeave: function() {}

    Do something

    Alert ("the mouse has left a div");

    },

    click on: function() {}

    Do something

    Alert ("clicked on a div");

    }

    });

    end of the sample code

    A way to do among many others. In the use above cases pay special attention to the point of separation between the "chained" events

    HTH

    Darrell

  • How to add additional event on sample in AS3 event handler

    We can add AS2 is additional event on the same event handler in the code below.

    on (deployment, dragOut) {}

    Statement 1

    }

    Now, I'm workin in AS3. So, how do I add additional event on the AS3 event handler

    Display name of the instance of the object is 'myBtn. "

    Here I have included only outside mouse only, now, I want to add the additional event handler

    myBtn.addEventListener (MouseEvent.MOUSE_OUT, myBtnEvent);

    myBtnEvent(event:MouseEvent):void

    {

    Statement 1

    }

    myBtn.addEventListener (MouseEvent.MOUSE_OUT, myBtnEvent);

    myBtn.addEventListener (MouseEvent.MOUSE_OVER, myBtnEvent);

    myBtn.addEventListener (MouseEvent.MOUSE_DOWN, myBtnEvent);

    etc...

    function myBtnEvent(event:MouseEvent):void

    {

    1 or more statements based on events

    }

  • Creation of the postprocess on recon RO event handler

    This is a follow-up question to a previous question that I've marked as "responded."

    How to create an action handler post process for the creation/update of ROS that are created by the GTC?

    I imported the following event handlers:

    < action handler
    Class = "com.Company.ROtoUSER"
    entity-type = "Resource".
    operation = "PROVISION".
    name = "ROtoUSER".
    Stadium = "post-processing".
    order = '2345 '.
    Sync = "TRUE" / >

    < action handler
    Class = "com.Company.ROtoUSER"
    entity-type = "Resource".
    operation = "MODIFYRESOURCE."
    name = "ROtoUSER".
    Stadium = "post-processing".
    order = "2346.
    Sync = "TRUE" / >

    Is a "Resource" correct type entity type? Post process manager does not start if it is attached to the entity type = 'User '.

    The correct operations (remembering that the receiver Office will be created by recon), is "AVAILABLE" and operation "MODIFYRESOURCE".

    Thank you.

    You could create a process task that runs on the task of reconciliation update and avoid the confusion you experience with the event handler. Write your code to perform an update of the usr. You can code in some controls are needed in your task of process.

    -Kevin

Maybe you are looking for