Create new JVM instances

My question is about JVM instances. How do you create additional instances and how do you make sure that you are using the same instance? For example, if I execute an app like so
java StartDeamonhow can I make sure that when I execute a second app that it is running in the same JVM so that it interacts with the first app?
java StopDeamonAnd vice versa, how could I make sure that an app such as this one runs in a separate JVM so that it doesn't affect the processes in the previous JVM?
java KillAllDaemonsInThisJVMInstanceDoes that make sense?

would you mind elaborating on that? what options are
there for a custom solution? How do others do it if
not in Java? If I execute a second program, does it
automatically get put in the same JVM instance of the
first program? I'm assuming it does.No. In windows, for example, when you run a Java program you are really starting a new instance of java.exe. There is nothing built in for it to know to use an existing instance.
Do additional
JVM instances get created automatically? If so, what
is the criteria?Always using a new instance is the MO. If you want some other behavior you need to implement it yourself.
It's not easy. Even if you find an existing instance of the JVM, you need someway of sending it a message telling it to run your main method. Also, how will you be sure that the JVM is one created by your application and not some other application that won't appreciate your application crashing it's private party?
Do a search on these forums and you will find a bunch of solutions (many of which are probably unusable.)
Off the top of my head, you could use memory mapped files to mark whether your application is running. If a second instance is started, send a message to a port that will tell the first instance to create a second instance of your app (assuming there is only one application.)
Is the application a GUI or non-visual?

Similar Messages

  • How to create new OC4J instance in AS 10.1.3 with BC4J- and ADF-Libraries

    Hi
    I have done all the steps mentioned in this thread:
    How to create new OC4J instance in AS 10.1.3
    However, the new created OC4J instance obviously misses some libraries. If I deploy my Application to this OC4J I get an internal error: Class not found: oracle.jbo.JboException.
    The same Application runs well in the "home" Instance.
    What is the trick, to create a new OC4J instance, which more or less behaves the same way as the "home" instances (and especially has all the same libraries)?
    Thanks for your help
    Frank Brandstetter

    I encountered this last month. I definitely agree that it is a glaring omission to not have "Create Like" functionality when instantiating new containers. Here's my notes on the manual steps required after using createinstance to create the fresh container. Not too bad. I've been deploying ADF applications to the new container with no problems after this.
    ==============
    The default (home) OC4J container is pre-configured for ADF 10.1.3 applications; however, when $ORACLE_HOME/bin/createinstance is used to create additional containers, these containers are not configured automatically to host ADF 10.1.3 applications.
    I followed these manual steps:
    1. $ORACLE_HOME/j2ee/home/config/server.xml defines three shared libraries that "install" the needed JARs for Oracle ADF applications in your application server instance (container). Note that "install" does not necessarily mean available to applications (see Step 2). Copy the three shared library element definitions to the <application-server> element of your new container (in server.xml).
    <shared-library name="oracle.expression-evaluator" version="10.1.3" library-compatible="true">
         <code-source path="/usr2/oracle/as10130/jlib/commons-el.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/oracle-el.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/jsp-el-api.jar"/>
    </shared-library>
    <shared-library name="adf.oracle.domain" version="10.1.3" library-compatible="true">
         <code-source path="/usr2/oracle/as10130/BC4J/lib"/>
         <code-source path="/usr2/oracle/as10130/jlib/commons-cli-1.0.jar"/>
         <code-source path="/usr2/oracle/as10130/mds/lib/concurrent.jar"/>
         <code-source path="/usr2/oracle/as10130/mds/lib/mdsrt.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/share.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/regexp.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/xmlef.jar"/>
         <code-source path="/usr2/oracle/as10130/BC4J/jlib/adfmtl.jar"/>
         <code-source path="/usr2/oracle/as10130/BC4J/jlib/adfui.jar"/>
         <code-source path="/usr2/oracle/as10130/BC4J/jlib/adf-connections.jar"/>
         <code-source path="/usr2/oracle/as10130/BC4J/jlib/dc-adapters.jar"/>
         <code-source path="/usr2/oracle/as10130/ord/jlib/ordim.jar"/>
         <code-source path="/usr2/oracle/as10130/ord/jlib/ordhttp.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/ojmisc.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/jdev-cm.jar"/>
         <code-source path="/usr2/oracle/as10130/lib/xsqlserializers.jar"/>
         <import-shared-library name="oracle.xml"/>
         <import-shared-library name="oracle.jdbc"/>
         <import-shared-library name="oracle.cache"/>
         <import-shared-library name="oracle.dms"/>
         <import-shared-library name="oracle.sqlj"/>
         <import-shared-library name="oracle.toplink"/>
         <import-shared-library name="oracle.ws.core"/>
         <import-shared-library name="oracle.ws.client"/>
         <import-shared-library name="oracle.xml.security"/>
         <import-shared-library name="oracle.ws.security"/>
         <import-shared-library name="oracle.ws.reliability"/>
         <import-shared-library name="oracle.jwsdl"/>
         <import-shared-library name="oracle.http.client"/>
         <import-shared-library name="oracle.expression-evaluator"/>
    </shared-library>
    <shared-library name="adf.generic.domain" version="10.1.3" library-compatible="true">
         <code-source path="/usr2/oracle/as10130/BC4J/jlib/bc4jdomgnrc.jar"/>
         <code-source path="/usr2/oracle/as10130/BC4J/lib"/>
         <code-source path="/usr2/oracle/as10130/jlib/commons-cli-1.0.jar"/>
         <code-source path="/usr2/oracle/as10130/mds/lib/concurrent.jar"/>
         <code-source path="/usr2/oracle/as10130/mds/lib/mdsrt.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/share.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/regexp.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/xmlef.jar"/>
         <code-source path="/usr2/oracle/as10130/BC4J/jlib/adfmtl.jar"/>
         <code-source path="/usr2/oracle/as10130/BC4J/jlib/adfui.jar"/>
         <code-source path="/usr2/oracle/as10130/BC4J/jlib/adf-connections.jar"/>
         <code-source path="/usr2/oracle/as10130/BC4J/jlib/dc-adapters.jar"/>
         <code-source path="/usr2/oracle/as10130/ord/jlib/ordim.jar"/>
         <code-source path="/usr2/oracle/as10130/ord/jlib/ordhttp.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/ojmisc.jar"/>
         <code-source path="/usr2/oracle/as10130/jlib/jdev-cm.jar"/>
         <code-source path="/usr2/oracle/as10130/lib/xsqlserializers.jar"/>
         <import-shared-library name="oracle.xml"/>
         <import-shared-library name="oracle.jdbc"/>
         <import-shared-library name="oracle.cache"/>
         <import-shared-library name="oracle.dms"/>
         <import-shared-library name="oracle.sqlj"/>
         <import-shared-library name="oracle.toplink"/>
         <import-shared-library name="oracle.ws.core"/>
         <import-shared-library name="oracle.ws.client"/>
         <import-shared-library name="oracle.xml.security"/>
         <import-shared-library name="oracle.ws.security"/>
         <import-shared-library name="oracle.ws.reliability"/>
         <import-shared-library name="oracle.jwsdl"/>
         <import-shared-library name="oracle.http.client"/>
         <import-shared-library name="oracle.expression-evaluator"/>
    </shared-library>
    2. To make the necessary ADF and JSF support libraries available to your deployed ADF application, the default application (that your ADF application and the majority of applications should inherit from) should explicitly import the shared library in the <orion-application> element of $ORACLE_HOME/j2ee/<your container>/config/application.xml.
    <imported-shared-libraries>
         <import-shared-library name="adf.oracle.domain"/>
    </imported-shared-libraries>
    Note: the adf.oracle.domain shared library imports several other shared libraries including oracle.expression-evaluator.

  • Creating New Entity Instances within OPA

    This is another one that I think I know the answer to, but I think it is best to confirm.
    In prior versions, it was not possible to create entity instances within RuleBurst/Haley Office Rules. Is that still the case in OPA?
    For example, my rules are determining the status of a case and the reason(s) why that status was determined. The case status may be Denied and the reasons may be "invalid customer Id", "expenses to income ratio too high", "primary customer not employed long enough", etc. I want to return all the reasons for the status. While the list of reasons is pre-determined, the ones that apply to a particular case are dynamic, as any, but not all can apply.
    Given this situation using a database, I would create an instance of reason for each applicable one and link it to the case. In the past, with OPA's predecessor(s), it was not possible to create new instances from within. They either had to all be passed into the rulebase or a list of all allowable reasons attributes had to be created and then set to true for the ones that applied.
    My preference is to create the instances inside OPA. Is that functionality provided in the current version?
    Thanks,
    Terry

    Hi Terry,
    Michael is correct that you can't write rules at design time which will dynamically create new entity instances at runtime. However, perhaps the new inferred relationships functionality in v10 could address what you're trying to do.
    You can write rules which conclude membership of an inferred relationship. So you might always have, say, 10 instances of 'the reason' in every case, but as for which of those instances apply in any particular case, it depends on the details of the case. You could use an inferred relationship to collect up the entity instances which apply in the case.
    First you'd need to set up a regular one-to-many relationship to instantiate the 10 instances at runtime - this would be done in the usual way. Then you'd also need to set up an inferred relationship and write rules to conclude the members of the inferred relationship. The instances which are members of the inferred relationship are then effectively the list of entity instances you wanted to create in your example above.
    Have a look at this OPM Help article: http://www.oracle.com/technology/products/applications/policy-automation/help/opm10_1/Content/Rules%20using%20entity%20instances/Reason_about_relship_between_2_entities.htm
    Cheers,
    Jasmine

  • ** Is it possible to create new BPM instance for each record (Multiline)

    Hi friends,
    In my scenario, JDBC adapter (sender) polls the open purchase order items from the table at the specified interval and send to BPM. In BPM, we used transformation step to split the messages to process each PO . The scenario is working fine. The problem is assume that if we process 10 PO, the error is in  4th PO while process, the BPM will be stopped in 4th PO. Once we correct the error, we are able to restart.
    In this case, we are not able to skip the 4th PO and process from 5th PO onwards. ie. the processing is sequential. Instead, we want to start new BPM instance for every PO. Advantage is that if 4th PO is error, only that BPM instance (work item) will be stopped. Remaining 9 POs will be completed.
    So, how do we start new BPM instance for every PO ?
    Kindly tell me, friends.
    Thank you.
    Kind Regards,
    Jeg P.

    Hi,
    There are two ways to achieve this.  In BPM and before BPM.
    Before BPM:
    Use 1 to unbounded mapping and 1 to unbounded interface mapping.
    In your mapping, make sure you create a seperate message for each PO.
    In BPM:
    Create a multiline container with you POs using a 1 to n mapping.
    Now add a ForEach block to loop through the multiline container and send each PO.
    Important:  Add an exception branch to catch any exception for each send so that the exception does not make the BPM fail.
    Regards,
    Yaghya

  • Error when creating new oc4j-instance

    1.
    when i create a new oc4j-instance via EMWeb i get the following:
    The operation failed.. Instance: iasdb.test.xxx.ch Message: Keine Meldung für diese Exception definiert. Base Exception: java.lang.NoClassDefFoundError:nullKeine Meldung für diese Exception definiert.
    the german text means: no message defined for this exception.
    when i then refresh the website the oc4j-instance is created, but down.
    2.
    when i try to deploy an application to any OC4J-instance manually i get the following error:
    Web-Anwendung ee konnte nicht eingesetzt werden Error while parsing oc4j configuration files. Root Cause: D:\Oracle\9iAS\j2ee\OC4J_AA\config\.\default-web-site.xml (Das System kann den angegebenen Pfad nicht finden). D:\Oracle\9iAS\j2ee\OC4J_AA\config\.\default-web-site.xml (Das System kann den angegebenen Pfad nicht finden)
    OC4J_AA whas a instance i once created and deleted then. it shoud no more exist.
    where does this error come from?

    Hi Stefan -
    I'm not sure where this error comes from, I've never seen it. Particularly in German! ;-)
    I think the best way to get more information on this is to repost your message to the general 9iAS forum. I believe that there are people monitoring that forum who look afer the management console and who might be able to help you further.
    -steve-

  • OBPM Studio 10g R3: Create new process instance via PAPI

    Hi folks,
    I used JDeveloper to generate Java stubs off the PAPI WSDL. This works great and I'm able to list Processes similar to the bundled JAX-WS example just fine. Now I'd like to take it to the next level and create a process instance. I really appreciate your guidance on how to do that.
    Currently my process has a Global Creation Activity (screenflow) and the BeginIn mapping goes to an Automatic Activity.
    Questions:
    1) Is it possible to create a process instance in my case given that I have a Global Creation Activity ? Or if not, what changes do I need to make?
    2) Does anyone have any Java code examples for invoking the PAPI process instance creation code?
    In my case, I found a method in the stub that accepts three parameters - the process Id (String), an "ArgumentSetBean name (String), and an ArgumentBean, but I'm not sure what to fill in. :-)
    Thanks everyone!

    Hi,
    See if this helps -->
    import fuego.papi.InstanceInfo;
    import fuego.papi.ProcessServiceSession;
    import fuego.papi.OperationException;
    import fuego.papi.Arguments;
    import fuego.papi.BatchOperationException;
    public class PAPIExample {
         public PAPIExample() {}
         public static void main(String[] args) throws OperationException, BatchOperationException {
              FuegoService fuegoServ = new FuegoService();
              ProcessServiceSession fuegoSession = fuegoServ.createSessionWithUsernameAndPassword("papi", "password");
              String processName = "/TestPAPI";
              Arguments arguments = Arguments.create();
              arguments.putArgument("argName", "GuessWhoIsHere");
              // First Way
              fuegoSession.processCreateInstance(processName, "In", arguments);
              // Second Way
              String globalActivity = "GlobalCreation";
              InstanceInfo instInfo = fuegoSession.activityExecuteApplication(globalActivity, processName, arguments);
              instInfo = fuegoSession.instanceRefresh(instInfo);
              fuegoSession.close();
    Edited by: Anup300684 on Jan 21, 2009 1:35 AM

  • Error in creating new OC4J instance

    Hi All,
    I am trying to Create a new OC4J Instance with the Help of "Oracle Enterprise Manager 10g for Application Server Control" , but the following Error message is displayed.
    "Error:
    The configuration files for this Oracle Application Server instance are inconsistent with the
    configuration stored in the repository. In order to protect the repository,
    no further configuration or deployment operations are allowed until the problem with the configuration on the filesystem is resolved. This condition arises when a prior operation was unsuccessful. The exception associated with this failed operation is:
    {0}
    . Please also check the logs located at
    ORACLE_HOME/dcm/logs to determine why DCM was unsuccessful in updating
    the configuration files on disk. Some possible causes are:
    * permissions on files
    * file contention issues on Windows NT
    * internal Oracle error
    After resolving the problem that prevented DCM from updating the configuration
    files, you may use the dcmctl resyncInstance command to resolve the problem.
    Alternatively, you can stop and then restart the active dcmctl or EMD
    process and resyncInstance will automatically be performed."
    Can anyone tell me how to resolve this problem and create a new OC4J instance?

    Hi Jason,
    Thanks for your help.
    I tried DCM tool but it is giving the same error. Is there any other tool to resolve this problem?
    Have you worked on Oracle Content Management SDK (Oracle CM SDK)?
    Actually, I am currently working on Oracle CM SDK. I have to dvelope an Content Management application (like WebstarterApplication which is provided)from scratch which can enable end user
    1. To browse through the documents in the repository.
    2. To open the documents form the repository itself.
    3. To edit and save the document in the place in the repository.
    I found that in WebstarterApplication (an CM SDK Application which is provided as demo), 1st and 2nd features are there but 3rd one is not.
    So, I am going to develope an application from scratch.
    Then is it necessary to create an OC4J Instance?
    Please suggest me what should be the steps to be followed to develope such an application from scratch.
    Thanks.

  • Error in creating new trial instance

    Hi,
    I am trying to create a new trial instance, but after long waiting it gives error
    "Unable to create trail instance"
    What is this error, how can I create my trial instance in HCP.
    Thanks
    Sunil Maurya

    Hello Sunil,
    at moment we have a general network issue in the Trial landscape.
    We are working on it.
    Sorry for any inconveniency
    Xu

  • Create new window instance

    This may be a basic question, but I'm trying to figure out how to create a new instance of a window (and associated controller) from a NIB. The situation is thus: I have a window created in interface builder, which has a number of bindings to a controller class I wrote (obviously :P ). When I run the program it comes up and behaves properly. I now want to be able to create a second copy of this window, as well as a second copy of the controller, since each instance needs to be able to store its own values.
    In theory, at least, I know how to instantiate a second controller class- just call alloc and init on a new pointer- but how do I instantiate a second copy of the window, and how do I make the bindings connect to the new instance of the controller? Sorry if this is a stupid question. Thanks!

    Hi Israel -
    Assuming I understand your requirement correctly, if the first window is defined in a separate nib owned by its controller, all you need to do is load that same nib again when initing the second controller. E.g.: the following should create two separate instances of the same controller class, each of which owns a separate instance of NSWindow, and each of which has the same set of bindings to other objects in the nib:
    // MyAppController.h
    - (void)awakeFromNib {
    MyWindowController *windowController1
    = [[MyWindowController alloc] initWithWindowNibName:@"MyWindowController"];
    NSWindow *window1 = windowController1.window;
    MyWindowController *windowController2
    = [[MyWindowController alloc] initWithWindowNibName:@"MyWindowController"];
    NSWindow *window2 = windowController2.window;
    NSRect frame = [window1 frame];
    frame.origin.x -= 40;
    frame.origin.y += 40;
    [window2 setFrame:frame display:NO];
    [window2 orderBack:self];
    // [window1 makeMainWindow]; // if main window was deleted from MainMenu.xib
    // [window1 makeKeyWindow]; // "
    If the first window is the main window defined in MainMenu.xib, it might be easiest to move that window into the separate, common xib to make the above example code work (I.e. just delete the main window from MainMenu.xib). In that case, the awakeFromNib method of your app controller or app delegate would be a good place to load the main window as suggested in the example.
    - Ray

  • Possible to create new ASM instance and "import" existing diskgroup?

    This is my worst nightmare. Two days before a server was about to be shut down, it crashed on me, corrupting the filesystem where Oracle was installed. Setup was an HP-UX 11.11 server running Oracle 10g with ASM storage on a disk array. Both instances were in the filesystem that got corrupted, and amazingly, we don't have a backup, so I'm not able to restore the instance configs and restart the database. Presumably, my data is still sitting there on the disks that belong to the ASM diskgroup, but I don't know how to get at it. I started by creating a new ASM instance, but I can't figure out if there's a way to create a diskgroup out of those 16 disks without wiping out what's on them.
    V$ASM_DISK shows all the disks as MEMBERs, with the CREATE_DATE that they were originally created, so I know at least the headers are intact. So is there any way I can manually recreate that diskgroup in my new instance so it will mount the disks and let me at the data?
    I realize that not having backups is the height of stupidity, but that boat has sailed. My company also chose not to pay for Oracle Support this year, so I'm kind of on my own. If anybody can at least point me in the right direction or tell me that it's a lost cause, I'd appreciate it.

    Well, a little progress. I was able to finally mount the disks in my new ASM instance, and using asmcmd, I can actually see my datafiles sitting there. So now I'm thinking I should try manually creating a new database instance pointing to the spfile that's in there and try starting that. I'm also going to try using RMAN and the XMLDB FTP trick to copy those datafiles somewhere else so I know I can play with them.

  • Oracle AS 10gR2: create new oc4j instance supporting ssl/https

    hi,
    i've got an oracle application server 10.1.2 (infra and midtier).
    in the midtier i want to add a new oc4j-instance which is possible via oracle enterprise manager 10g. after i've created the new oc4j-instance and deployed a war-file ("myapp") i can access a jsp of the deployed application with "http://myserver/myapp/test.jsp". now i want to enable ssl/https for my new oc4j-instance.
    i did the following steps according to the manual (http://download-west.oracle.com/docs/cd/B14099_19/web.1012/b14013/configssl.htm):
    1) created certificate with keytool
    2) added secure-web-site.xml (new oc4j-instance)
    3) modified sever.xml (new oc4j-instance)
    4) restarted new oc4j-instance
    my test.jsp is still available with "http://myserver/myapp/test.jsp", but when i try to access it with "https://myserver/myapp/test.jsp" i get an error that the resource is not found. strange that when accessing test.jsp with http it is searched in the folder of my new oc4j-instance (%ORACLE_HOME%/j2ee/oc4jnew/...), but when i want to access the page through https the server looks for the jsp in the default oc4j "home" (%ORACLE_HOME%/j2ee/home/...).
    what's the reason for that an how can i correct it?
    regards,
    matthias
    Edited by: matthias on Apr 26, 2010 4:15 PM

    You need to secure the HTTP Server and not the OC4J, remember that HTTP and WebCache are your frontends for any presentation layer, you need to modify ssl.conf and webcache in WebCache Admin page (in EM Console) to make them use ssl ports, as well as you want to use url with no port, you need to use port 443.
    Greetings

  • Error in Create 'New OC4J Instance'

    First time i created the oc4j instance. and Then deleted the instance.
    After that i am trying to create the same instance it is showing the error "unique Constraint error". I checked the following things,
    1. There is no directory of that instance under "<oracle_home>/j2ee"
    2. There is no entries in opmn.xml
    After that even if i specify the different name, it displays the following error,
    "Internal Error Instance creation failure. Root Cause: No config data persisted for component orionp.."
    Can any one suggest what could be the problem/solution?
    Thanks Ramesh

    Hi Jason,
    Thanks for your help.
    I tried DCM tool but it is giving the same error. Is there any other tool to resolve this problem?
    Have you worked on Oracle Content Management SDK (Oracle CM SDK)?
    Actually, I am currently working on Oracle CM SDK. I have to dvelope an Content Management application (like WebstarterApplication which is provided)from scratch which can enable end user
    1. To browse through the documents in the repository.
    2. To open the documents form the repository itself.
    3. To edit and save the document in the place in the repository.
    I found that in WebstarterApplication (an CM SDK Application which is provided as demo), 1st and 2nd features are there but 3rd one is not.
    So, I am going to develope an application from scratch.
    Then is it necessary to create an OC4J Instance?
    Please suggest me what should be the steps to be followed to develope such an application from scratch.
    Thanks.

  • Create new process instance

    Hi,
    How can we create a new instance of process other than global activity. Is there any way out for this?

    Hi Anuraq,
    Know I'm leaving out a couple, but here are ways you can create a new work item instance in a process:
    1) Here's how you can create an instance in a process using logic in an Automatic activity's method. This uses the "Fuego.Lib.ProcessInstance.create()" method shown below inside a process:
    // "args" is an associative string array (Any[String])
    argsIn as Any[String]
    // this assumes that the Begin activity has two argument variables
    //   named "nameArg" and "amountArg" and you're setting them
    //   to the variables "name" and "amount" respectively
    argsIn["someArgVarName"] = "Hello"
    argsIn["someBpmObject"] = myBpmObject
    // logic here to determine the name of the process to create an instance in
    idOfProcess as String
    idOfProcess = <hard coded string that has the id (not the name of the process to instantiate>
    ProcessInstance.create(processId : "/" + idOfProcess, arguments : argsIn, argumentsSetName : "BeginIn") ProcessInstance is in the Catalog inside Fuego.Lib.
    The processId parameter (the "idOfProcess" variable in the above logic) is the thing I most commonly screw up with this. It is the text you see when you right mouse click the process in the Project Navigator tab -> "Properties". Look at the value in the "Id" field and not the "Name" field here (the name without any space characters). Prefix it with a "/" as is shown here and if you've deployed this using an organization unit (OU) then prefix this to the string also.
    The third parameter is almost always "BeginIn". Begin activities in a process can have many incoming argument mappings, the default is "BeginIn". To see yours, double click the process's Begin activity and look at the mapping's name in the upper left corner of the dialog.
    "argsIn" is the set of incoming argument variables you want passed into the process. A common mistake is to type in the names of the incoming argument variables without the double quotes like this:
    // this will *NOT* work
    argsIn[someArgVarName] = "Hello"
    argsIn[someBpmObject] = myBpmObject
    . . .Here is the correct syntax:
    // this *WILL* work
    argsIn["someArgVarName"] = "Hello"
    argsIn["someBpmObject"] = myBpmObject
    . . .In this example, the process has two argument variables. It does not matter if the incoming argument variables are primitive type arguments (e.g. String, Integer, Decimal...) or BPM Objects, it is always done the same way. In this example, there is a String incoming argument called "someArgVarName" and a BPM Object incoming argument called "someBpmObject".
    2) Global Creation Activity - automatically creates an instance based on human interaction - requires no logic other than to set the argument variables you want passed into the process mapped to instance variables. If it's decided in the screenflow associated with this activity that you do not want to create an instance after all, it just needs to hit an Automatic task in the Global Creations's screenflow that has the logic "action = CANCEL"
    3) Global Interactive Activity - also based on human interaction it can create an instance if inside the Global Interactive activity's screenflow it hits an Automatic task that has the Instance.create() logic shown above.
    4) Using the Fuego.Papi.Instance.create method using logic inside a process.
    5) Using the Java PAPI:
    fuego.papi.Arguments arguments = Arguments.create();
    arguments.putArgument("inArgument", "MyArgument");
    String consolidatedProcessId = "/SomeProcessNameId";
    String argumentSetName = "BeginIn";
    fuego.papi.InstanceInfo instance = session.createProcessInstance(consolidatedProcessId,argumentSetName,arguments);6) Using the PAPI-WS (Web Service) API you can create an instance in a process using a web service call.
    7) A process can create a new instance in another process using the Subflow activity which synchronously creates an instance in a child subprocess and waits for the result to return once the instance in the child subprocess reaches the End activity in the process. From the parent process, you'd match the incoming and outgoing argument variables of the called child process with instance variables in your parent process.
    8) A process can create a new instance in another process using the Process Creation activity which asynchronously creates an instance in a child subprocess (fire and forget) but does not wait for the child to respond to the parent. Once the child process begins, the parent continues its flow. From the parent process, you'd match the incoming argument variables of the called child process with instance variables in your parent process.
    Dan

  • Newbie: Create new OID instance

    Hello,
    I've been tasked with bringing up Oracle Access Manager 10g using OID as the directory server on a Windows Server 2003 box.
    In the installation document and the install wizard it allows me to store policy and configration data in seperate OID instances.
    Up to this point I have allowed the install wizard to automatically install OID schema changes to the port 389 instance. I now want to store policy data separately in an instance listening on port 390 but I can't figure out how to startup a new instance on port 390.
    I have been trying to do this following instructions in Oracle Internet Directory Administrator's Guide and using the Windows Oracle Directory Manager UI but without any luck.
    Any tips would be greatly appreciated
    Thank you
    Chris

    If you need to install the software on a separate host you need to use Oracle Installer.
    If you just need a separate OID server on an existing host you need to configure a new config set for OID.
    Here you can use Oracle Directory Manager to do this (in the server management section of ODM). You can also use ldapmodify with the config parameters specified in a LDIF file.
    See the Directory Admininstrator guide section "Oracle Directory Server Administration"
    http://download-west.oracle.com/docs/cd/B28196_01/idmanage.1014/b15991/server.htm#i1024411
    regards,
    --Olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • A way to create new object instances in a loop?

    I have an square matrix of String values.
    Is there a way to take each row, make it into an object, and put the object in a new square matrix of objects?
    Any ideas?

    Do you mean something like this:Integer[][] foo = new Integer[5][5];
    for (int i = 0; i < foo.length; i++) {
        for (int j = 0; j < foo.length; j++) {
    foo[i][j] = new Integer(i + j);
    }It's hard to guess what you want, why not post some code (use the code tags: Formatting tips)

Maybe you are looking for

  • Upgrading Oracle EM GC 10.1.0.3.0

    I am running Oracle Enterprise Manager Grid Control Using a New Database 10.1.0.3.0 on Windows 2003 Server. I need to upgrade to the latest version of Grid Control. Looking over Upgrade instructions it appears that the earliest version of Grid Contro

  • How Do I Get a Glyph's Bounding Box After a "glyphshow"?

    I am trying to capture the bounding box from painting a character using glyphshow, but the result seems not to be the actual bounding box.  Here is a snippet of PS code that I am trying: % begin snippet /BickhamScriptPro-Bold 70 selectfont 0 0 moveto

  • SQLException :  Non supported character set

    I'm trying to use customized type mapping with JDBC and something doesn't work. here is a sample code: Connection con; String spec = "{? = call listUzivatele()}"; CallableStatement cstmt = con.prepareCall(spec); cstmt.registerOutParameter(1, Types.AR

  • A script to batch rename and relink images?

    Hello, everyone! First of all, I did search for this before asking and found many similar scripts for this, but as I don't know how to make or edit scripts, I couldn't use them... I work at a company that makes school books. Each InDesign file we mak

  • Bridge CS6 shuts down

    I recently loaded PS CS6 and am having trouble with Bridge. When I right click on a RAW image to open it in Camera RAW (or use other methods) Bridge shuts down with the message: Data Execution Prevention has closed Adobe Bridge. I still have PS CS3 l