Create the new instance to a diferent project

Im trying to create a new instance in a project, I use an interactive global activity to do this, when trying to create the reception that this message in the BPM 'JavaLangNullPointerException', the global comprehensive interactive activity log is in a different project that I want to create the instance.

This is the code I used in BPM

args ['argPrueba'] = 1234

Result2 = ProcessInstance.create (processId: "/ Test", arguments: args, argumentsSetName: "BeginIn")

in the other project, I configure the beginIn of this way activity:

idPrueba = argPrueba

I used BPM 10g

If you cannot create instances of processes in the same project, you need to double check your logic.

1. check that 'args' is an array of associative strings (Any [String]).  Believe that the default value to a variable called "argsIn" (you have "args" in your logic).

This means that Begin activity has two variables of the arguments
named 'nameArg' and 'amountArg' and you're implementation in
for variables 'name' and 'amount' respectively
argsIn ['someArgVarName'] = 'Hello '.
argsIn ['someBpmObject'] = myBpmObject

2. check your other settings in logic.

Instance.Create (processId: "/" + idOfProcess, arguments: argsIn, argumentsSetName: "BeginIn")

The processId parameter is the thing I most often used to screw up with that. This is the text that you see when you process in the project right-click browser tab-> "Properties". Look at the value in the field 'Id' and not the field 'Name' (the name without a space). Prefix with "/" as presented here and if you have deployed this using a unit of Organization (UO) then prefix this chain also.

The third parameter is almost always "BeginIn". Start of activities in a process can have several incoming argument mappings, the default value is "BeginIn". See your, double-click the process Begin activity and seek on behalf of mapping in the upper left corner of the dialog box.

"argsIn" is the set of variables of incoming arguments you want to spent in the process. A common error is to type the names of the variables argument entering without the double quotes, as follows:

. . .
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 doesn't matter if the incoming arguments are arguments of primitive type (e.g. String, Integer, Decimal...) or objects of BPM, it is always in the same way.  In this example, there is an incoming string argument, called "someArgVarName" and an argument entering BPM object called "someBpmObject".

Dan

Tags: Fusion Middleware

Similar Questions

  • create the new instance of the database

    Hi all

    Today, I have to create three instances on my (RedHat, Oracle 10 g) oracle server. It comes to sql that I found to create the database:

    CREATE DATABASE mynewdb
    The USER SYS IDENTIFIED BY pz6r58
    The USER IDENTIFIED BY y1tz5p SYSTEM
    LOGFILE GROUP 1 ('/ u01/oracle/oradata/mynewdb/redo01.log') SIZE in the 100M.
    GROUP 2 ('/ u01/oracle/oradata/mynewdb/redo02.log') SIZE in the 100M.
    GROUP 3 ('/ u01/oracle/oradata/mynewdb/redo03.log') SIZE 100 M
    MAXLOGFILES 5
    MAXLOGMEMBERS 5
    MAXLOGHISTORY 1
    MAXDATAFILES 100
    MAXINSTANCES 1
    CHARACTER SET US7ASCII
    NATIONAL CHARACTER SET AL16UTF16
    DATAFILE ' / u01/oracle/oradata/mynewdb/system01.dbf' SIZE 325 M REUSE
    LOCAL MANAGEMENT MEASURE
    SYSAUX DATAFILE ' / u01/oracle/oradata/mynewdb/sysaux01.dbf' SIZE 325 M REUSE
    TABLESPACE tbs_1 default
    TEMPORARY TABLESPACE tempts1 default
    TEMPFILE ' / u01/oracle/oradata/mynewdb/temp01.dbf'
    RE-USE OF SIZE 20 M
    UNDO TABLESPACE undotbs
    DATAFILE ' / u01/oracle/oradata/mynewdb/undotbs01.dbf'
    SIZE 200M REUSE AUTOEXTEND ON MAXSIZE UNLIMITED;


    Each size of the user will be larger than 3 GB. I don't know what exacly means in this word of the line 'REUSE '.

    DATAFILE ' / u01/oracle/oradata/mynewdb/system01.dbf' SIZE 325 M REUSE

    Maybe someone can give me a short advaice how to install size of data, temp files to get the best performance.

    You can read this link before you proceed with the creation of the database,

    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14231/create.htm#sthref260

    HTH
    Aman...

  • How to create the new record of web service in the ADF?

    Hello, I use JDeveloper 11.1.2.3.0. I created a class and published as a web service. I created a web method like this:

       public void addNewRow(MyObject cob)

    {

    MyAppModule myAppModule = new MyAppModule();

    try {

    ViewObjectImpl vo = myAppModule.getMyVewObject1();

    ================> vo object is now null

    Row r = vo.createRow();

    r.setAttribute("Param1", cob.getParam1());

    r.setAttribute("Param2", cob.getParam2());

    vo.executeQuery(); getTransaction().commit();

    }

    catch (Exception e) { e.printStackTrace(); }

    }

    As I have written in the code, myAppModule.getMyVewObject1 () returns a null object. I do not understand why! AFAIK AppModule must initialize the object itself, when I call "getMyVewObject1()", but maybe I'm wrong, or maybe that's not the way it should be for the web methods. Has anyone ever have this problem? Any help would be much appreciated.

    You must use Configuration.createRootApplicationModule () to create the new instance of AM.

    Example: creating root Application Module Instance & #8211; Oracle ADF | Techiecook & #039; s Nook

    Also, the methods in your AM can be automatically exposed as service web soap:

    Andrejus Baranovskis blog: Web Service Interface for molten Oracle 11 g ADF BC Application Module

    And note that your code has other issues, for example:

    vo.createRow () will not automatically add this line to the View object.

    vo.executeQuery () is not necessary...

    Dario

  • create the new process instance

    Hello

    How can we create a new instance of processes other than in global activity. Is there a way on this?

    Hi Anuraq,

    Know I'm leaving on a couple, but there are several ways you can create a new instance of the work item in a process:

    (1) this is how you create an instance in a process using the logic in the activity of the automatic method. This example uses the "Fuego.Lib.ProcessInstance.create ()" method below within 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 = 
    ProcessInstance.create(processId : "/" + idOfProcess, arguments : argsIn, argumentsSetName : "BeginIn") 
    

    ProcessInstance is in the catalog inside Fuego.Lib.

    The processId parameter (the variable "idOfProcess" in the logic above) is the thing that I most often live with that. This is the text that you see when you process in the project right-click browser tab-> "Properties". Look at the value in the field 'Id' and not the field 'Name' (the name without a space). Prefix with "/" as presented here and if you have deployed this using a unit of Organization (UO) then prefix this chain also.

    The third parameter is almost always "BeginIn". Start of activities in a process can have several incoming argument mappings, the default value is "BeginIn". See your, double-click the process Begin activity and seek on behalf of mapping in the upper left corner of the dialog box.

    "argsIn" is the set of variables of incoming arguments you want to spent in the process. A common error is to type the names of the variables argument entering without the double quotes, as follows:

    . . .
    // 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 doesn't matter if the incoming arguments are arguments of primitive type (e.g. String, Integer, Decimal...) or objects of BPM, it is always in the same way. In this example, there is an incoming string argument, called "someArgVarName" and an argument entering BPM object called "someBpmObject".

    (2) the overall activity of creation - creates automatically an instance based on human interaction - requires no other logic to set the argument variables you want to spent in the process mapped to instance variables. If it is decided in the screenflow associated with this activity that you do not want to create an instance after all, he just needs to hit an automated task to screenflow creations worldwide that has logic 'action = CANCEL'

    (3) Interactive global activity - also based on human interaction, it can create an instance when you get inside screenflow Interactive global activity to an automated task that has the logic of Instance.create () above.

    (4) using the Fuego.Papi.Instance.create method using the 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) with the API of PAPI-WS (Web Service), you can create an instance in a process using a web service call.

    (7) a process can create a new instance in another process by using the activity subflow, which creates an instance in a child synchronously sub-process and expects the result to return once the instance in the child sub-process reached the end of the process activity. The parent process, you would correspond to the variables of the arguments incoming and outgoing of the child called process with instance variables in your parent process.

    (8) a process can create a new instance in another process using the process creation activity that creates an instance of an asynchronous child subprocess (fire and forget), but does not expect the child to respond to the parent company. Once the child is initiated, the mother continues its flow. The parent process, you would correspond to the variables of the incoming arguments of the called child process with instance variables in your parent process.

    Dan

  • Launch BTF in a new window via URL - always creates a new instance of the AOS?

    Hello

    JDeveloper/ADF 11.1.2.4

    I use the method documented by Frank Nimphius to open a workflow bounded in a new window. The difference in my case is rather than a range of remote data control, I want the new window to share the same instance of module app launch window.

    My BTF has Transaction < controller Transaction No. > the value and scope of data control is a shared value.

    When I run the first page (in the unlimited workflow), a new instance of AOS is created as expected.

    When I click on the button to launch the window with the stubborn workflow, another instance of AOS is created.

    The problem is that in the request module original I stored some status information in the user session data (and I coded the passivation/activate process to handle this). Unfortunately, the second instance of AOS has no access to these data. User session data is empty and no activation process is triggered to complete.

    I can use the Andrejus Baranovskis method to inject the session data in the new instance AM using a custom control of Data Factory, but it seems unnecessary to instantiate the second AM when the first could be reused.

    Is it possible I can configure the system to share the app between two windows module? If you start a BTF via a URL will be always instantiate a new App Module, regardless of the settings of transaction?

    Thank you very much

    Kevin

    Hello

    I connected an SR for this and the answer is that this is normal. A new window will always cause a new instance of AOS to create.

    See you soon,.

    Kevin

  • Create the new schema of database in jdev

    I can create new database schema in jdev. If yes how?

    I checked the links, but they say how to create the connection to an existing database but does not create the new database?

    Help, please...

    User, even once, to design and build a database table is possible if you have a db instance (which will contain the new tables) already installed.

    My feeling is that you don't have. Solution: install an instance db (for example Oracle XE) and once you have that continue the tutorial.

    Timo

  • Unable to create the new domain file

    Hi experts

    I am trying to create the new domain file, but there is no success.

    Tools-> domain Administration > file-> Select

    When I choose, the dialog box open typed the new name for file field, you click Open.

    the error message is "mydomains.xml is not a domain file.

    Please tell me how to create the new domain file where you will store the areas associated with my project.

    Thank you

    Hello

    With the dialogue of the Administration of the areas, you modify xml with the areas. You cannot create a file or assign the file with the fields in given the design from there.

    Documentation:

    SQL Developer Data Modeler does not include the default domains file.

    To create new field definitions, select Tools > areas of Administration and click Add to create and add your own domains. These areas are added to the default value of the file, defaultdomains.xml, and can be used for all your projects.

    The file is located in /datamodeler/types/defaultdomains.xml

    Basically, you should

    1. create /datamodeler/types/defaultdomains.xml if it does not already exist

    See Tutorial: modeling of data for a small database

    2. create some (open) design and import file fields to file-> import-> areas

    3. after that study is registered again Directory /domains with design level domains file inside the tree of creation will be created.

  • APEX does not open after you have created the new Oracle listening port

    Hi guys,.

    I had to re register Oracle listener using "lsnrctl start". A new listening port has been created and I am able to connect user Apex by PL/SQL Developer. Port 8080 is open.
    But if I try to open the application APEX of URL (http://localhost: 8080/apex/f? p = :::) 4550:1:0 its not opening not.) It was working fine until yesterday.
    I use Oracle XE 11 g and APEX 4.2

    C:\Windows\System32 > sqlplus sys as sysdba

    SQL * more: Production of liberation 11.2.0.2.0 kills may 7 22:21:18-2013

    Copyright (c) 1982, 2010, Oracle. All rights reserved.

    Enter the password:

    Connected to:
    Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production

    SQL > SELECT DBMS_XDB. GETHTTPPORT FROM DUAL;

    GETHTTPPORT
    -----------
    8080

    SQL >

    so I do not know why APEX does not URL. What I have to put something at the TOP after you have created the new listening port. Can you please help?

    Kind regards
    Marie Claire

    Published by: 1004608 on May 7, 2013 14:40

    Link to your thread to listen would have helped: Oracle XE 11g with Apex No problem of Listener (ORA-12541: listener TNS:no)

    It seems that your listener uses the static instance via the listener.ora file registration and missing entries for the http service. Edit your listener.ora (F:\Apex_Installed\app\oracle\product\11.2.0\server\network\ADMIN\listener.ora) file and add the following entries in the listener.ora file DESCRIPTION_LIST. Then, restart the listenerer.

    (DESCRIPTION=
      (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=8080))(Presentation=HTTP)(Session=RAW)
    )
    
  • Copy value of text fields in the new instance.

    I have a subform where I use "TAG.instanceManager.addInstance (1);" to create a new instance of the subfrom, but I also want to have a button that creates a new instance that copies the values of the current instance. (See Image below, also provided hierarchy if that helps)   Is it possible to have the values to be copied to the new instance?  Any help would be appreciated. Thank you

    Example.png

    Hierarchy.png

    Hello

    If you clone the data node that the TAG subform is bound before the addInstance (1) then the new nodes form binds new data nodes.

    So try this JavaScript in the click event of your CopyTagBtn

    tags var = page1.resolveNodes ("TAG [*]");

    Download the last marker to clone

    var tag = tags.item (tags.length - 1);

    Create the new set of data to bind to the

    tag.parent.dataNode.nodes.append (tag.dataNode.clone (true));

    Add the new instance of tag, which will bind to the new data set

    TAG.instanceManager.addInstance (1);

    Concerning

    Bruce

  • How can I create a new instance on unix

    Hello
    How can I create a new instance (instance only) on UNIX and how do I mount my database with this new instance.

    udayjampani wrote:
    Hello
    How can I create a new instance (instance only) on UNIX and how do I mount my database with this new instance.

    (1) define the Instance in your own way!
    If you simply create a startup nomount with her, and then - in theory - and pfile file you have a conduct of the proceeding (this method is used for example for restoring a backup rman)

    (2) you can't. The database files are related to a certain instance. What you can do is to recreate an instance with a different name for example, by using the scripts generated by an "alter database backup controlfile to trace;" command

    See you soon
    FJFranken

  • Hidden fields are visible in the new instance of the subform.

    Hi all.

    I have the following problem:

    I have a subform with a check box and a text field.  When the box is checked, the text field is visible.  When it is disabled, it is hidden.

    I also have a button which adds another instance of the subform.  When I click and add another subform, the masked text field is visible in the new instance instead of stay hidden until the box is checked.  Also, when I add the new subform instance and select the check box, the hidden field becomes visible at first to the subform.

    Here is what I use to hide and show fields:

    If (this.) RawValue == 1)

    (form1.subform1.textfield1.presence = "visible");

    on the other

    (form1.subform1.textfield.presence = "hidden");

    The foregoing is in the initialize event and change.

    I would really appreciate help to learn how to keep each instance does not affect another, as well as the way to keep the field hidden in newly added instances of the subform.

    Thanks in advance.

    J

    Hello

    You can add the action to the checkbox for the workflow. To do this, you can right click on the checkbox under the hierarchy Panel and then click on 'Add Action '. Also if you want the field to be hiddedn in the new instance and then at design time, you must set the property of as hidden control.

    Steps to get the workflow.

    1. make a right click on the checkbox control--> click Actions--> add an Action

    2. select in the drop-down list. When the check box is cleared.

    3 set the visibility of the textfield to hidden.

    4 click Add new action as indicated below.

    5. select in the drop-down list. When the box is checked.

    6 set the visibility of the textfield visible.

    7. click OK to create the action and close the window of action.

    To set the TextField to select hidden textfield and open its property of the object. Set the value of the presence as hidden.

    ************

    Please download the https://acrobat.com/#d=hM8oyP3be4O3HRBt14CkYg sample file

  • Copy to the new instance of the subform

    What I'm trying to do is to copy a field and when a new instance of a subform is created to another field.

    When a user clicks the show button, the button to show opens a new instance of the form.  I need the sent field to fill in the field of criticism on the new instance.  Is this possible?

    instance.png

    Hello

    Here is an example:

    https://Acrobat.com/#d=HD6XJ1qofZDf713Yq1P43g

    The first example simply sets the value of the drop-down list. The second adds an element to the drop of the examiner, as sending drop-down list allows the custom entry.

    I've been lazy even if, as the script should check first of all the duplicates. I'll try and get back to that.

    Hope that helps,

    Niall

    Ensure the dynamics

  • create a new instance

    Hi it is Mary, I m using JavaScript in live Cycle Designer ES2 ver 9

    I m using a subform within a subform inside the content of the form

    SubForm1._Subform2.CreateInstance (True)

    It does not work for me...

    How can I create a new instance of object in it...

    Hello

    The container that the subform is inside, must be set to flowed so you can set the subform be repeatable (object > range of liaison) and allow the object > range of paging. Generally, the page is set to flowed and inside the page you placed the subforms for objects that do not develop (for example, buttons, the dates, the textfields that don't develop in height, etc.) and sank for objects that are growing, the subforms.

    Yes, your file must be saved in a dynamic XML file.

    Hope that helps,

    Niall

  • Create a new instance based on a string

    Hi all

    I have to add some movieclips dynamically to the scene. I have stockings fall on the scene who will control what is added. The value of each selection is the name of each movieclip. How can I take this and create a new instance of the clip right?

    I know that this code does not work but it needs to illustrate what I'm doing.

    var myclip:MovieClip = new dropdown1.value;

    I did some research, but so far have not had much luck. I found getChildByName, but it sounds like it just is something already on the scene.

    also, is there a way I can cite the instance dynamically so? for example, lets say I wind up adding 10 movieclips can I dynamically name myClip1, myClip2, myClip3... myClip10 - I thought I found an answer for this part by:

    var this [dropdown.text + '1']: MovieClip = new MovieClip(); but which generates an error.

    Thank you

    This is the function that I use to create new movieclip

    public static void CreateNewMovieClipByName(aStrMovieClipName:String):void

    {

    var classMovieClip: Class = ApplicationDomain.currentDomain.getDefinition (aStrMovieClipName) in class;
    return new classMovieClip();

    }

    You must ensure that the links and properties are set correctly, otherwise you won't be able to find the definition. Make sure that the correct flash files are imported.

  • Edited text symbol does not appear when I create a new instance

    I just edited the text within a symbol. But when I drag this symbol on the canvas to create a new instance, it does not reflect the changes that I made. Is this a bug or I do something wrong?

    Use the symbol properties panel to make changes to the text label.

    h

Maybe you are looking for