Using multiple instance variables or BPM objects in a single JSP

In my screenflow, for an user activity, I've selected a BPM object variable for my JSP and using this BPM object variable within the JSP to display or accept values related to this BPM object.
But in certain circumstances, I need access to some of the instance variables defined in my screenflow (which are not members of the BPM object), and to get these variable values displayed in my JSP. I don't want to overload my BPM object with all these instances as they do not logically fit as members in this BPM object.
For example, if I need to capture and display the logged in user name across the JSPs in my web application, then how can I do that without specifying this user variable in all of my BPM objects.
Is there any extensibility in using more than one BPM object variables in my JSPs? Why is it that a single BPM object variable is tied to a JSP? Or am I missing something else here?

I'm with the same problem!

Similar Messages

  • Memory allocation when using multiple instances of a static array.

    Hi,
    I have question regarding the amount of memory allocated using multiple instances of a class that has declared a static array, e.g.:
    package staticTest;
    import javacard.framework.*;
    public class StaticClass
         static byte[] staticArray;
         public StaticClass()
              staticArray = new byte[100];
    /* Another class */
    package statictest;
    import javacard.framework.*;
    public class MyApplet extends javacard.framework.Applet
         StaticClass staticLibA, staticLibB;
         public MyApplet()
              /* Here we use two instances */
              staticLibA = new StaticClass();          
              staticLibB = new StaticClass();
         public static void install(byte[] bArray, short bOffset, byte bLength)
              (new MyApplet()).register(bArray, (short)(bOffset + 1), bArray[bOffset]);
         public void process(APDU apdu)
              byte[] buf = apdu.getBuffer();
              switch(buf[ISO7816.OFFSET_INS])
    }When downloading and installing this applet on a gemXpresso 211 PKis (that has a ' Get free EEPROM memory' function) the card reports that the amount of memory is increased by a approx 100 bytes every time a new staticLibX is added in the MyApplet constructor. Is this correct? If yes, can someone explain to me how to declare a static array that only allocates memory once and are being shared by the instances.
    Best regards,
    Jonas N

    Hi!
    I have another issue about static variable. The following is my sample code:
    ========================================
    package com.Test01;
    import javacard.framework.*;
    import javacard.security.*;
    import javacardx.crypto.Cipher;
    public class Test01 extends Applet {
         OwnerPIN Pin;
         static DESKey[] keys;
    protected Test01(byte[] buffer, short offset, byte length) {     
    keys = new DESKey[4];
    length = 0;
    while (length < 4) {
         keys[length] = (DESKey)KeyBuilder.buildKey((byte)3, (short)0x80, false);
         length = (byte)(length + 1);
    public static void install(byte buffer[], short offset, byte length) {     
    new Test01(buffer, offset, length);
    ===========================================================
    If there are two instances, A and B, created in the package.
    My issue:
    1. Are keys[0]~ keys [3] kept while B is deleted?
    2. Does each instance have itsown object while "keys[length] = (DESKey)KeyBuilder.buildKey((byte)3, (short)0x80, false);"?
    3. follow item 2, if A and B share the same object, is the object kept while B is deleted?
    Thank you
    Best regards,
    kantie

  • How to use multiple instances of the same dll ?

    Hi,
    I'd like to use multiple instances of a jni dll . I have created
    different threads, in each thread, I have called System.loadLibrary(..),
    and I would like each thread to access a different instance of this
    library.
    Unfortunately, the loadLibrary function is effective only once so I
    can not find the way to do this.
    Can anyone help me on this ?
    Thanks.
    Francois.

    Hi, :)
    and I would like each thread to access a different
    instance of this library.In Win32, this is outright impossible. A DLL will only exist once in a process space.
    In Unix, or at least in Solaris, I think this is also not possible, as libraries are loaded by the dynamic linker, and it keeps tabs of which modules have already been loaded into the process space.
    I'm assuming your problem is that your native library has non-reentrant code.
    If so, there are two approaches you can take to this:
    1) If you have access to the source code for the native library, change it so that it is reentrant.
    2) If you do not, change your Java code so that access to the native code is made from whithin synchronize blocks.
    If your problem is of a different nature, I'll second the words of the previous poster and ask you what it is...
    Cheers,
    J.

  • "you can not use multiple instance of Program at the same time"

    Hello @ all,
    I have a Problem, after the installing from Acrobat Testversion and acrobat reader in version in "all Combination" 8 an 9.
    I get this misstake information "you can not use multiple instance of Program at the same time" if I want open more then 1 .pdf.
    If I have no pdf open, but acrobat/reader so i can´t open with the same Misstake.
    I have deinstalled and installed, Allways I bekame the same information. I tryed all things to clean and know i don`t know forward.
    Important: by Drag an Drop in the Acrobat Reader it is going, but by direct click on the pdf i get mistake.
    Maybe, you know what I can do!
    Thanks for help!

    Installation of both Acrobat and Reader in the same Windows machine is not advisable. If I were you, I would remove both completely and then reinstall the one you want to keep.

  • Configuring multiple instances of weblogic server 7.0 on single machine

    Hi,
    I am trying to configure multiple instances of weblogic server 7.0 on single machine
    ( sun Solaris 7). I tried to create everytime new domain. Can anybody help me.
    Thanks in advance.
    Ravi

    You can have several servers under one domain. No need to create a new
    domain for each server. Just configure a server and make sure they are
    listening on different ports. you are all set.
    Kumar
    ravikiran wrote:
    Hi,
    I am trying to configure multiple instances of weblogic server 7.0 on single machine
    ( sun Solaris 7). I tried to create everytime new domain. Can anybody help me.
    Thanks in advance.
    Ravi

  • How to use multiple instances in Oracle CRM On Demand

    Hi,
    Just wanted to know if we can have multiple instances in Oracle CRM On Demand? Our company has bought licenses for Oracle CRM On demand and have received a single link for the development / staging, but we have two seperate business units that will be using this systems and their processes are completely different....I thing i wanted to ask is if we can have a sub system within a big system without both interfering into each others processes.
    I hope it makes sense.
    Thanks
    Ahmed

    Hi Ahmed,
    This might be quite possible. Again, it depends on the organizational and technical complexity of both these BU's.
    1. There can be different processes in different geographies in which your application might be used. Inorder to achieve this in a single instance of CRM On Demand.
    There can be some fields that are specific to certain region, in that case you can use Roles, Access Profiles, Dynamic Layouts to change the Fields of the layouts which will allow the user to enter/read information specific to only that user.
    2. Workflows can be used to trigger an event only for users in certain BU defined in your application.
    Also the Sales Process is specific to a Role and by configuring them correctly you can make these processes fit your requirements.
    3. There are somethings that always remain the same though, like Accounts, Contacts , other entities and the pre-defined relationships, their names. Off-course these can be modified but when modified they apply through the applications. So you won't be able to have different names to the Account entity in the Major BU and the subset BU.
    I would suggest you get in touch with Oracle Expert Services if you are looking to get more details on how you can make best out of a single instance.
    Good Luck!
    Royston

  • Multiple instances of a Singleton-Object by updaterule ?

    Hi folks,
    I'm trying to load > 1 Mio. records from an ODS into another InfoProvider. Every record gets some keyfigures out of a very very expensive table-join.
    I tried creating this join in an ABAP-Singleton-Object to reduce uploading-time.
    This object holds a private-static attribute 'instance' as a reference to a instance of the object and a public-static 'getInstance()'-method, which returns the 'instance'-value. This method is standard-Singleton-like designed.
    Then I created a process-chain with:
    - an ABAP-process, which calls the 'getInstance()'-method
      of this Singleton.
      At the first pass this method calls the constructor and
      after that a private method, which creates the join and
      holds the result in an internal table.
      So the constructor is empty.
    - after that the data should be transfered (by an Info-
      Package) from the ODS to the other InfoProvider. In some
      fields of the update-rule and in the startroutine of
      the rule the 'getInstance()'-method of the Singleton is
      been called and by this reference to the only (so I
      thought) instance some other methods should return a
      calculated value out of the join.
    So theory .... the startroutine is been called for multiple datapackages (no problem) --- but for every package in the startroutine the 'getInstance()'-method calls the constructor, so I get multiple instances of a Singleton.
    The time-gap between the package-calls is > 10 secs., so the static-attribute should been set immediately in the first pass of the 'getInstance()', since the constructor is empty.
        Any ideas ???
        Bye Ralf

    -/-

  • How to call the BPM objects in the child JSP?

    Hi,
    We are facing some problem, we are trying to use the JSP for the UI instead of BPM Presentation.
    In the JSP we are calling the child JSP(using JSP include), we need to pass the BPM objects from child to parent JSP.
    Can any one help me on how to pass the Object between the JSP's and BPM Obejcts.
    I will explain in the Example too,
    1. We are created the BPM objects with fields
    2. Created 2 JSP's 1. Main.JSP 2. Sub.JSP
    Now we need to call the sub.jsp into main.jsp,while we calling we need to pass the sub.jsp BPM Object.
    Regards,
    Anandh P

    Hi
    When you use <% include page="test.jsp" %> you can use the same object's name in child jsp like in parent file (this is static way to include another file).
    Hope this could solve the problem. regards.

  • [SOLVED] Multiple Instances of Word 2010; Possible to Force Single Instance?

    Is it possible to either:
    Control Word instancing so that its a single instace application; OR
    Adjust the behavior so that if there's already an Word of word, new documents (no matter how they're launched) will open in the existing instance and NOT a new one?
    I have a user who tends to open documents en masse/in bulk, highlighting 2-8 at a time and opening them (alternate-click > open OR once selected hitting [Enter]).
    When they do this, multiple instances of Word are launched.
    Very rarely is there an instance for each document, but its usually close.  For example, if they opened 8 documents there might be 5-7 instances, with several instances showing 2 or more documents in View > Switch Windows.
    Multiple instances of Word are a problem for this user because they because a heavy user of Ctrl+F6 / Ctrl+Shift+F6.
    And when documents are spread out across multiple instances, this does not work: It does not allow them to cycle through all opened documents; It will only cycle through those that are within that particular instance of Word.
    Is this by design?
    Is this a change in the way earlier versions of Word behaved?
    Is this an 'undocumented feature' [or worse]?
    Can this behavior be controlled?

    No idea; I'd call it a bug.
    This behavior started with Word 2007 or 2010, earlier versions opened all documents within a single instance.
    See 1.
    No, unfortunately not.
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • Binding multiple instance variables of multiple objects

    So I got this problem and cant figure out a solution. It seems to be a quite simple pattern but Im really new to jfx....
    Follows an imaginary code that kind of represents the problem in my real code:
    class A {
      public var vA: String;
      //...code that updates vA according to a specific logic
    class B {
      var seq: A[];
      public function addA(a: A) {
        insert a into seq;
      public function removeA....
      //how to monitor if one of the elements (OR logic) in seq have changed vA to say print the new value?
      //I mean, how can I bind each vA of each instance in seq to a trigger that will print the new value?
    }Note: The size of sequence increases/decreases as the user add or remove elements dynamically.
    This does not work since the bind dependencies in the for are not affected by varA:
    var newseq: String[] = bind for(a in seq) {a.varA} on replace {println(newseq)}This is not allowed by the compiler:
    var newseq: String[] on replace {println(newseq)};
    for(a in seq) {
      newseq[i] = bind a.varA; //incorrect syntax: seems that its not allowed to bind each individual sequence element through indexing
      i +=1;
    }Is there any obvious solution to this problem? Am I'm taking the wrong path?
    Thanks.

    OK, here is my latest version:
    class A
        public var vA: String on replace
            notifier(this);
        public-init var notifier: function (a: A): Void;
        public override function toString() { return vA; }
    class B {
        public-read var seq: A[] = for (i in [ 1 .. 10 ]) getA()
                on replace prevSeq[ lowIdx .. highIdx ] = usedSeq
            if (usedSeq == [])  // Delete operation
                delta = prevSeq[lowIdx].toString();
            else
                delta = usedSeq[0].toString();
        public-read var delta: String;
        public function add(): Void
            insert getA() into seq;
        public function remove(): Void
            def p = (Math.random() * (sizeof seq)) as Integer;
            delete seq[p];
        public function changeObj(): Void
            def p = (Math.random() * (sizeof seq)) as Integer;
            seq[p] = getA();
        public function changeVar(): Void
            def p = (Math.random() * (sizeof seq)) as Integer;
            def val = getVal();
            seq[p].vA = val;
            println(val);
        function getVal(): String
            def dt = DateTime {}
            return "{%1$tH:%1$tM:%1$tS:%1$tL dt.instant}"
        function getA(): A
            return A { vA: getVal(), notifier: updated }
        function updated(a: A): Void
            delta = "Value changed: {a.vA}";
    var b = B {}
    var scene: Scene;
    Stage
        title: "Sequence Update Observer"
        scene: scene = Scene
            width: 200
            height: 700
            content:
                VBox
                    layoutX: 20, layoutY: 20
                    spacing: 10
                    content:
                        Button { text: "Add", action: b.add }
                        Button { text: "Del", action: b.remove }
                        Button { text: "Change Obj", action: b.changeObj }
                        Button { text: "Change Var", action: b.changeVar }
                        Text
                            content: bind b.delta
                        ListView
                            items: bind b.seq
    }Note: when I change the value, the ListView doesn't change its content, as it is not aware either of any change.
    I haven't investigated to see how to compensate the issue, since that's not the main topic of the thread.

  • Returning multiple instances of the same object?

    I have a fairly straight forward swing test class that contains a combobox. The problem is that an object is not selected in the combobox because I get different objects when building the list and when setting the selected item.
    To test this, I've added the following set of 4 lines on three locations in the code:
    - immediately after Toplink is initialized
    - when setting the selected item
    - when the main exits (and the JFrame is open)
    Stand s = Stand.findByPK(4).getDerrivedfromstand();
    System.out.println( s + ", Using EM #" + Integer.toHexString( lEntityManager.hashCode() ) );
    s = Stand.findByPK(1);
    System.out.println( s + ", Using EM #" + Integer.toHexString( lEntityManager.hashCode() ) );
    I happen to know that Stand 4 is derrived from Stand 1. So I get Stand 1 once via Stand 4 and once directly. The result is:
    java.vm.version=1.6.0-b105
    [TopLink Info]: 2007.05.30 11:01:10.531--ServerSession(33414193)--TopLink, version: Oracle TopLink Essentials - 2.0 (Build b41-beta2 (03/30/2007))
    [TopLink Info]: 2007.05.30 11:01:11.343--ServerSession(33414193)--file:/C:/Documents%20and%20Settings/toeu/My%20Documents/kp/reinders/reinders/voorraad/container/bm/build/-reinders login successful
    // immediatly after Toplink init
    [1] setObject=4 / SELECT ... FROM stand WHERE (standnr = >>>HERE<<< )
    executeQuery: SELECT ... FROM stand WHERE (standnr = ?)
    [1] setObject=1 / SELECT ... FROM stand WHERE (standnr = >>>HERE<<< )
    executeQuery: SELECT ... FROM stand WHERE (standnr = ?)
    nl.reinders.bm.Stand@1866417, Standnr=1, Using EM #1a8e53c
    [1] setObject=1 / SELECT ... FROM stand WHERE (standnr = >>>HERE<<< )
    executeQuery: SELECT ... FROM stand WHERE (standnr = ?)
    nl.reinders.bm.Stand@1866417, Standnr=1, Using EM #1a8e53c
    // when filling a combobox in the GUI
    executeQuery: SELECT ... FROM stand ORDER BY standid ASC
    getElementAt 0 = nl.reinders.bm.Stand@1866417, Standnr=1
    // when setting the value of the combobox
    executeQuery: SELECT ... FROM stand ORDER BY standid ASC
    [1] setObject=4 / SELECT ... FROM stand WHERE (standnr = >>>HERE<<< )
    executeQuery: SELECT ... FROM stand WHERE (standnr = ?)
    [1] setObject=1 / SELECT ... FROM stand WHERE (standnr = >>>HERE<<< )
    executeQuery: SELECT ... FROM stand WHERE (standnr = ?)
    nl.reinders.bm.Stand@171ef98, Standnr=1, Using EM #1a8e53c
    [1] setObject=1 / SELECT ... FROM stand WHERE (standnr = >>>HERE<<< )
    executeQuery: SELECT ... FROM stand WHERE (standnr = ?)
    nl.reinders.bm.Stand@171ef98, Standnr=1, Using EM #1a8e53c
    // when exiting the main (JFrame is open)
    [1] setObject=1 / SELECT ... FROM stand WHERE (standnr = >>>HERE<<< )
    executeQuery: SELECT ... FROM stand WHERE (standnr = ?)
    nl.reinders.bm.Stand@171ef98, Standnr=1, Using EM #1a8e53c
    [1] setObject=4 / SELECT ... FROM stand WHERE (standnr = >>>HERE<<< )
    executeQuery: SELECT ... FROM stand WHERE (standnr = ?)
    nl.reinders.bm.Stand@171ef98, Standnr=1, Using EM #1a8e53c
    [1] setObject=1 / SELECT ... FROM stand WHERE (standnr = >>>HERE<<< )
    executeQuery: SELECT ... FROM stand WHERE (standnr = ?)
    nl.reinders.bm.Stand@171ef98, Standnr=1, Using EM #1a8e53c
    What is amazing is that somewhere after the combobox is filled, the query returns another instance of the same record and thus the select item will not find an "equal" object in the list. Any suggestions?

    Nevermind. A clear was done on the EM somewhere down the line.

  • USING MULTIPLE SELECT VARIABLE IN A SQL STATEMENT

    In HTMLDB, the value of the parameter of a multiple select box is colon delimited(ie P6_Name = Smith:Jones:Burke). Is there an easy way to use this parameter in a SQL statement?
    Example
    Select *
    from names
    where
    Name=P6_Name
    Select *
    from names
    where
    Name IN ('Smith','Jones','Burke')
    Thank you

    Thank you for your response! I'm an idiot. It didn't make sense to me because your talking about a <i>multi-select</i> variable and I was thinking about a <i>select-list</i> variable. My problem is that I need to assign a list of values to one select list item.
    <br>
    For example:
    <br>
    SELECT * FROM EMPLOYEE
    WHERE EMPLOYEE_TYPE IN ( :SELECT_LIST_RETURN_VALUE );
    <br><br>
    With the select list as
    <br><br>
    Display value = All Types, Some Types, One Specific Type<br>
    Return Value = (Type1, type2, type3), (type1, type2), (type3)
    <br><br>
    I've just started in all of this so I'd imagine that I'm probably going about it wrong.

  • Is there a way to get the result of using multiple blending modes in one object?

    Hello,
    I wonder if there's a way to merge multiple objects with blending modes to one object. Here is the example:
    On the left rhere are three objects with the same appearence but different blending modes(color dodge, normal, overlay), on the right they are overlapped, which are still three object. I'm looking for the way to have the same result as the right overlapped one, but as one object. Having the same multiple objects only for the result of color blending mode uses too much memory for my computer.
    Thank you for your help in advance.

    create one object: then in your appearance panel, duplicate the fill twice. Select the top fill and expand the sub menu, click on opacity, choose blending mode. repeat.
    G

  • How to use an instance of a text object

    Hello All
    I have an animated open in which animated panel reveal video and text behind them, I need to add second text object to the animation that is going to be on top of the animated panel this text object I want it in the same place as the text to be revealed but I want to scale to make it look as if it was scaled (magnified) up as the panels move across the screen to reveal the video and text, but I want to use only one text object. In after effect I can accomplish this by precompossing the text then adding the comp text in a main comp and scaling the copy of the text comp but I only have to change one text layer. So what I want is to change edit one object in motion instead of duplicating the text layer and then editing two layers instead of one.
    Thanks for your help
    Juan O

    Hi all
    I found the the answer to my question, but thanks for your help anyways.
    here it is
    added a layer then
    added a text object (position size etc...)
    selected the layer
    went to objects menu and selected replicate (short cut letter " L ")
    I needed to scale the copy (replicate) of the text object
    so I scaled the replicator object inside the replicated layer
    I had to move it to compensate for the scale
    since I wanted to use it like a reflection across the panels
    I added a copy of the panels to the replicated layer (the copy of the original text layer)
    then added an image mask to the replicated layer
    turned off the panels inside the replicated layer
    selected the image mask
    from the layers tab I draged the turn off panels object and droped it in the small drop box with the title "image"
    in the image mask tab
    set the source channel to Luminance everything else at default
    and that is it
    Thanks again, and I hope this will be of help to others
    matzunaga

  • RPD: How to use multiple-value variables in initialization blocks ?

    Hi all,
    I have a set of initialization blocks required for authentication, two of which are running row-wise. The first one sets a multi-valued variable, and the second one uses this variable.
    Or at least, should use, because it actually fails. The NQServer log says
    [nQSError: 13011] Query for Initialization Block 'My_Init_Block_2' has failed.
    [nQSError: 23006] The session variable, NQ_SESSION.MY_VAR_1, has no value definition.
    My first variable is initialized in a basic row-wise initialization block. What's more, if I say my 2nd block isn't required for authentication, and I read in a narrative the contents of my first variable, it contains the set of value I expect it to have.
    can anybody please advise?
    thanks in advance!
    Cedric..

    There is an example in the OBIEE Server Administration manual that looks very similar to your code except that the whole of the valueof string is quoted:
    select
    NAME, VALUE from RW_SESSION_VARS
    where USERID='VALUEOF(NQ_SESSION.USERID)' {code}<br /><br /><br /><br />Pete                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for