How to pass any type of objects into Portal's rules engine?

Is that possible to pass any type of objects into Portal's rules engine? Or BEA's Portal service rules engine can only allow to pass a limited number of objects?
Are there any information about BEA's rules engine? and Can we use its rules engine without using its Portal service?
Thank you.

I worked on BEA rules engine 4 months back. I'm sure you can pass any JAVA object to it's working meomory. I am giving my sample rules here, hope it will be helpful for you.
I just replace pcakage name, other than that everything is from wroking project. Open in xml spy, it should be clear from the desc. If you have any questions post back.
<cr:rule-set is-complete="true" xmlns="http://www.bea.com/servers/p13n/xsd/expression/expressions/2.1.1" xmlns:cr="http://www.bea.com/servers/p13n/xsd/rules/core/2.1.1" xmlns:literal="http://www.bea.com/servers/p13n/xsd/expression/literal/1.0.1" xmlns:string="http://www.bea.com/servers/p13n/xsd/expression/string/1.0.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.bea.com/servers/p13n/xsd/rules/core/2.1.1 rules-core-2_1_1.xsd">
     <cr:rule is-complete="true">
          <cr:name>TaxForm1040</cr:name>
          <cr:description>If salary is 70,000 then this rule makes 1040 as required form</cr:description>
          <cr:conditions>
               <multi-and>
                    <multi-and>
                         <equal-to>
<instance-method>
<variable>
<name>SalaryField</name>
<type-alias>com.blah.field.REInputObject</type-alias>
</variable>
<name>getKey</name>
</instance-method>
<literal:string>Salary</literal:string>
</equal-to>
<equal-to>
<instance-method>
<variable>
<name>SalaryField</name>
<type-alias>com.blah.field.REInputObject</type-alias>
</variable>
<name>getValue</name>
</instance-method>
<literal:integer>70000</literal:integer>
</equal-to>
                    </multi-and>
               </multi-and>
          </cr:conditions>
          <cr:actions>
               <new-instance>
                    <type-alias>com.blah.field.RequiredField</type-alias>
                    <arguments>
                         <literal:string>1040</literal:string>
                    </arguments>
               </new-instance>
          </cr:actions>
     </cr:rule>
</cr:rule-set>

Similar Messages

  • How to pass xml data as objects into Database using store procedures

    Hi All,
         I don't have much knowledge on store procedure,can anybody help how to pass the xml as objects in Database using store procedure.
    My Requirement is I have a table with three fields EMPLOYEE is table name and the fields are EMP_ID,EMP_TYPE AND EMP_DET,I have to insert the employees xml data into corresponding fields in the table.
    Input Data
    <ROWSET>
       <ROW>
         <EMP_ID>7000</EMP_ID>
          <EMP_TYPE>TYPE1</EMP_TYPE>
         <EMP_DET>DEP</EMP_DET>
      <ROW>
      <ROW>
         <EMP_ID>7000</EMP_ID>
         <EMP_TYPE>TYPE2</EMP_TYPE>
        <EMP_DET>DEP2</EMP_DET>
    <ROW>
    <ROW>
         <EMP_ID>7000</EMP_ID>
         <EMP_TYPE>TYPE3</EMP_TYPE>
        <EMP_DET>DEP3</EMP_DET>
    <ROW>
    <ROWSET>
    So each row values has to inserted into resp fields in the table.
    Regards
    Mani

    Do you have a similar structure in your stored procedure ?
    In that case you can simply call the procedure from soa using db adapter and do a mapping to assign the values.

  • Merging any type of documents into existing PDF using Adobe Java APIs

    We know that latest Adobe Acrobat tool can convert any type
    of documents into PDF. We need the same functionality to be built
    in into our java code by using Adobe's Java APIs. I am sure that
    Adobe has some readily available Java APIs to handle such
    requirements.
    FYI: We don't want Adobe's tool to handle this and we want
    Adobe's available Java API to handle this merging functionality
    programatically. We are ready to pay for it.
    Thanks,
    Ashok Hottin

    I'm not 100 percent sure but I'm afraid the way you want to use this Web-service is far from what SAP/Adobe thought it should be used. Take a look at SAP Library [here |http://help.sap.com/saphelp_nw70/helpdata/EN/f2/21021b911f4c0cae11459a4ce0bc62/frameset.htm] and [here|http://help.sap.com/saphelp_nw70/helpdata/EN/8d/1cbf69fff9454ca9c5de84182e4bfb/frameset.htm]. This solutions relies on previously created PDF Form Template - that means, e.g. tables are not rendered as if being printed with any number of columns and rows, but components of data tables coming from SAP are injected in rows/columns of the form where they were planned to be during template design.
    Additionally I think your idea of such usage of Adobe Document Services is not covered with software license you have as SAP customer/partner. Once again, I'm not 100% sure about it.
    Still, my opinion is that you won't succeed in it anyway due to the logic of the solution.
    Special PDF manipulation components will do the job better and easier, and nearly of them have demo/trial versions. So, if you ask me, don't waste your time and check special components.

  • How can we create a ABAP object into .ptr file

    HI,
          How can we create a ABAP object into .ptr/.car/.sar format so that we can give it to a remote client and which can be imported into their R/3 system to get the functionality of this object.

    Hello Ramesh
    All you need is SAPLINK. Have a look at the following links:
    <a href="/people/ed.herrmann/blog/2005/11/14/the-enterprise-and-the-bazaar Enterprise and the Bazaar</a>
    <a href="https://sourceforge.net/projects/saplink/">SAPLINK</a>
    Regards
      Uwe

  • How to pass username and password with the portal url

    i want to access portal from my web site. i have created username and password fields in my web page. when submited , my portal page should open. so how to pass username and password with the portal url.

    This is not straightforward; but it is doable.
    First tell us about your portal version; portal 10.1.4 has a slightly different method of doing it and the pre-10g portals were completely different animals.
    And if you are in AS Rel 2, then the most important document for you would probably be the following:
    [Creating Deployment Specific Pages| http://download-west.oracle.com/docs/cd/B14099_19/idmanage.1012/b14078/custom.htm#i1015535]
    You might want to use it in conjunction with some metalink notes about your portal version and such a login page.
    hope that helps!
    AMN

  • How to pass table type variable into function from SQL*PLUS ?

    How to pass a table type variable from sql*plus prompt into a function ?
    Thanx in advance.

    Krishna,
    Do you mean like this?SQL> DECLARE
      2      TYPE t_tbl IS TABLE OF VARCHAR2(20);
      3      l_sample_tbl           t_tbl;
      4
      5      FUNCTION print_contents ( p_tbl IN t_tbl )
      6      RETURN VARCHAR2
      7      IS
      8          l_string            VARCHAR2(1000);
      9      BEGIN
    10          FOR i IN 1..p_tbl.COUNT LOOP
    11              IF (i = 1) THEN
    12                  l_string := p_tbl(i);
    13              ELSE
    14                  l_string := l_string || ', ' || p_tbl(i);
    15              END IF;
    16          END LOOP;
    17          RETURN (l_string);
    18      END print_contents;
    19
    20  BEGIN
    21      l_sample_tbl := t_tbl();
    22      l_sample_tbl.EXTEND;
    23      l_sample_tbl(1) := 'one';
    24      l_sample_tbl.EXTEND;
    25      l_sample_tbl(2) := 'two';
    26      l_sample_tbl.EXTEND;
    27      l_sample_tbl(3) := 'three';
    28      l_sample_tbl.EXTEND;
    29      l_sample_tbl(4) := 'four';
    30      l_sample_tbl.EXTEND;
    31      l_sample_tbl(5) := 'five';
    32      DBMS_OUTPUT.PUT_LINE(print_contents(l_sample_tbl));
    33  END;
    34  /
    one, two, three, four, five
    PL/SQL procedure successfully completed.
    SQL> HTH,
    T.

  • How to create multiple TYPES of objects from one menu?

    Q: How can I create a single class to create objects of multiple 'object classes' in a way that is not a huge switch statement?
    Explaination:
    Let's say that I have an application that I am building, that manages five hundred object types. A properly-built object subclassing tree is created, and I want to be able to create objects of any 'leaf node' of this subclassing tree using a single 'objectCreate()' method in a 'factory object'. The purpos of this method will be to create an instance of the correct object, pass a handle to a few collections for properly sorting and storing these objects in groups.
    Usually, one could create a switch in this function, testing for the type of object that the user wants to create from the menu. But in the case of having hundreds of possible object choices, this becomes harder and harder code to maintain (let alone performance).
    Any suggestions?

    But if my menu has:
    1. German Shepard
    2. Doberman Pinscher
    3. Malamut
    4. Persian Long-hair
    5. Siamese
    6. Tabby
    And my object class tree goes:
                                  [ Animal ]
                 [ Cat ]                              [ Dog ]
      [ various breeds ]                         [ various breeds ]How do I code the menu class to respond to the input, so that it runs the correct [breed] object's constructor?
    The line:
    Animal choice = new xxxxxxxx();
    I can't use a variable to replace 'xxxxxxxx' in run-time, but having a ton of choices in code sounds/looks unreasonable.
    if (choice == "Doberman Pinscher")
    Animal choice = new doberman();
    else if (choice == "Tabby")
    Animal choice = new tabby();
    Do you see what I am trying to avoid? I am not experienced enough to instantly realize how to avoid the latter, and instead, do a single instantiation command for the correct constructor.

  • How to pass thr document from Webdynpro into SAP R/3?

    HI Gurus,
    I have a requirement to offer a Document uploading option through Java webdynpro screen.
    I have referred the below link
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71
    which has the steps till uploading the document into Webdynpro
    Now my requirement is to pass the document into SAP R/3? is there any RFC for that?
    Please ad

    Refer Oliveri's solution in [this|Re: How to upload file from Web Dynpro into R/3 (BAPI_DOCUMENT_CREATE2); thread.

  • How to pass Array of Java objects to Callable statement

    Hi ,
    I need to know how can I pass an array of objects to PL/SQL stored procedure using callable statement.
    So I am having and array list of some object say xyz which has two attributes string and double type.
    Now I need to pass this to a PL/SQL Procedure as IN parameter.
    Now I have gone through some documentation for the same and found that we can use ArrayDescriptor tp create array (java.sql.ARRAY).
    And we will use a record type from SQL to map this to our array of java objects.
    So my question is how this mapping of java object's two attribute will be done to the TYPE in SQL? can we also pass this array as a package Table?
    Please help
    Thanks

    I seem to remember that that is in one of Oracle's online sample programs.
    http://www.oracle.com/technology/sample_code/tech/java/sqlj_jdbc/index.html

  • How can I store a File object into a Vector and get it back

    hi there
    I need to store a number of File object into a Vector first, and later on I need to get each File object out and work with it.
    Vector mylist;
    File[] myfile;
    ....get a list of files from using File Chooser
    mylist = new Vetor();
    for (i=0;i<myfile.length;i++){
    mylist.add(myfile);
    ..how do I get them back? i try to do this way
    for (i=0;i<mylist.size(); i++)
    File tempfile = mylist.get(i);
    ..work with tempfile. but I got java.lang.object error: imcompatible types. what can I do?

    Vector mylist;
    File[] myfile;
    ....get a list of files from using File Chooser
    mylist = new Vetor();
    for (i=0;i<myfile.length;i++){
    mylist.add(myfile);
    ok try this: i don't reall understand what your trying to do though...
    File[] files;
    // get files
    Vector fileList = new Vector();
    for (int i = 0; i < files.length; i++)
      fileList.add(files);
    // to get them out.
    for (int i = 0; i < fileList.size(); i++)
    ((File)fileList.elementAt(i)).toString();
    // or
    // to get them out.
    for (int i = 0; i < fileList.size(); i++)
    File temp = (File)fileList.elementAt(i);
    System.out.println(temp.toString);

  • How to pass file name as parameter into url: or fo:external-graphic src

    Hello gurus,
    In my rtf I want to dynamically get the name of the image file and display the image in the report. If use hard coded image file name it works but if I try to get the name into a variable and pass that variable it is not working.
    Basically my client is having different logos for each operating unit. in the OA_MEDIA directory there are separate logos for each OU. during run time based on OU name we need to display the corresponding image. If I can get this entire path($OA_MEDIA/logo.jpg') in XML field<?CF_OU_LOGO?> then I'm able to print the logo using url:{CF_OU_LOGO}
    But I'm using seeded data source and I cant modify the data source, I need to handle this in RTF only. I could able to get the file name into a variable but not sure how to pass to url.
    could some one help me on this. I tried the following options
    <fo:external-graphic src="url($ln)" />
    url:{$ln} in web etc...
    here 'ln' is the variable which holds '$OA_MEDIA/logo.jpg'. ln is defined as <xsl:variable name="ln" select=".//CF_OPERATING_UNIT" />
    later I set the values as <?xdoxslt:set_variable($_XDOCTX, 'ln',translate( concat('${OA_MEDIA}/','Logo',.//CF_OPERATING_UNIT,'.jpg'),' ',''))?><?xdoxslt:get_variable($_XDOCTX, 'ln')?>
    thanks,
    Vijay

    Vijay
    What version of EBS is the customer running? I read somewhere that in R12 all of the concurrent parameters are passed to the XMLP template. I have not tried this but if true. You could create a conc program parameter that would hold the location of the image. You could either have the user pick the image or maybe derive it from the other parameter choices.
    Lets assume the token name is DLOGO you can reference that in your template.
    <?param:DLOGO?>
    this needs to be at the top of the template. Then where you need to embed the image just reference the value using
    $DLOGO
    You can embed this in the external graphic field
    As I mentioned I have not tested it yet, hopefully its there, if not there are ways around it. Try it first.
    Tim

  • How to distinguish the type of object that came in the JMS message.

    I have a queue that has 4 different object's being sent through messages across the queue. Depending on the object that comes in I need to determine what process to start. I have created a master project with a single queue listener that will start the master process. Either before the listener starts the master process or after the master process starts in a method I need to figure out the type of object that was contained in that method. In Java its simply if(msg InstanceOf ObjectB), else if (msg InstanceOf ObjectC)....and so forth. What is the way this would be done in ALBPM6.0's fuego code or whatever it is called?

    In case you had an ID, which is assigned automagically on emp, this could also be written like this:
    create trigger emp_trig
    after insert or update or delete on emp
    for each row
    begin
    insert into emp_log values(
    :new.empno, :new.ename,
    decode(nvl(:old.id,-1),-1,'Insert',decode(nvl(:new.id,-1),-1,'Delete','Update')), sysdate);
    end;
    ..where -1 is a value you do not expect to be propagated ever in id column. Also, :new.empno and :new.enmae will be null if the dml being executed is a delete statement.

  • How to find the type of objects contained in a Stored Package?

    Hello,
    I need to populate all the procedures and functions contained in a package. I have rewritten a query like this
    "SELECT PROCEDURE_NAME FROM ALL_PROCEDURES WHERE OBJECT_NAME = 'MYPACKAGENAME'
    Above Query returns a record, having NULL PROCEDURE_NAME value. Why?
    I also want the 'type' of object (stored procedure/function ) contained in the a package.
    How to fetch it?
    Following query always returns object type 'PACKAGE', which is of no use for me. I want to know if it is stored procedure or function.
    SELECT PROCEDURE_NAME, *OBJECT_TYPE* FROM ALL_PROCEDURES WHERE OBJECT_NAME = 'MYPACKAGENAME'
    Cheers,
    Machhindra

    Hi,
    Just thinkin Out of Box way... :-
    Microsoft Windows [Version 5.2.3790]
    (C) Copyright 1985-2003 Microsoft Corp.
    F:\Documents and Settings\Administrator>sqlplus scott/tiger@service1
    SQL*Plus: Release 10.2.0.1.0 - Production on Fri Sep 26 21:49:03 2008
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> CREATE OR REPLACE PACKAGE emp_mgmt AS
      2  FUNCTION hire (last_name VARCHAR2, job_id VARCHAR2,
      3     manager_id NUMBER, salary NUMBER,
      4     commission_pct NUMBER, department_id NUMBER)
      5     RETURN NUMBER;
      6  FUNCTION create_dept(department_id NUMBER, location_id NUMBER)
      7     RETURN NUMBER;
      8  PROCEDURE remove_emp(employee_id NUMBER);
      9  PROCEDURE remove_dept(department_id NUMBER);
    10  PROCEDURE increase_sal(employee_id NUMBER, salary_incr NUMBER);
    11  PROCEDURE increase_comm(employee_id NUMBER, comm_incr NUMBER);
    12  no_comm EXCEPTION;
    13  no_sal EXCEPTION;
    14  END emp_mgmt;
    15  /
    Package created.
    SQL>
    SQL> SELECT PROCEDURE_NAME FROM ALL_PROCEDURES WHERE OBJECT_NAME = 'EMP_MGMT';
    PROCEDURE_NAME
    CREATE_DEPT
    HIRE
    INCREASE_COMM
    INCREASE_SAL
    REMOVE_DEPT
    REMOVE_EMP
    6 rows selected.
    Now you requirement
    SQL> SELECT PROCEDURE_NAME,A.OBJECT_NAME,OBJECT_TYPE FROM ALL_PROCEDURES A, USER_OBJECTS UO WHERE UO.OBJECT_NAME = A.O
    BJECT_NAME AND A.OBJECT_NAME='EMP_MGMT';
    PROCEDURE_NAME                 OBJECT_NAME
    OBJECT_TYPE
    REMOVE_EMP                     EMP_MGMT
    PACKAGE
    REMOVE_DEPT                    EMP_MGMT
    PACKAGE
    INCREASE_SAL                   EMP_MGMT
    PACKAGE
    PROCEDURE_NAME                 OBJECT_NAME
    OBJECT_TYPE
    INCREASE_COMM                  EMP_MGMT
    PACKAGE
    HIRE                           EMP_MGMT
    PACKAGE
    CREATE_DEPT                    EMP_MGMT
    PACKAGEIn oder to know the type of Object why don't you simple decribe in order know the Object definition it self.. instead of firing queries...Don't you thinl it easy of use.. !! you will get better Explanation about your Package
    SQL> desc EMP_MGMT;
    FUNCTION CREATE_DEPT RETURNS NUMBER
    Argument Name                  Type                    In/Out Default?
    DEPARTMENT_ID                  NUMBER                  IN
    LOCATION_ID                    NUMBER                  IN
    FUNCTION HIRE RETURNS NUMBER
    Argument Name                  Type                    In/Out Default?
    LAST_NAME                      VARCHAR2                IN
    JOB_ID                         VARCHAR2                IN
    MANAGER_ID                     NUMBER                  IN
    SALARY                         NUMBER                  IN
    COMMISSION_PCT                 NUMBER                  IN
    DEPARTMENT_ID                  NUMBER                  IN
    PROCEDURE INCREASE_COMM
    Argument Name                  Type                    In/Out Default?
    EMPLOYEE_ID                    NUMBER                  IN
    COMM_INCR                      NUMBER                  IN
    PROCEDURE INCREASE_SAL
    Argument Name                  Type                    In/Out Default?
    EMPLOYEE_ID                    NUMBER                  IN
    SALARY_INCR                    NUMBER                  IN
    PROCEDURE REMOVE_DEPT
    Argument Name                  Type                    In/Out Default?
    DEPARTMENT_ID                  NUMBER                  IN
    PROCEDURE REMOVE_EMP
    Argument Name                  Type                    In/Out Default?
    EMPLOYEE_ID                    NUMBER                  IN
    SQL>- Pavan Kumar N

  • Using TestStand How I pass an array of data into a DLL (IPC3.dll) for serial communication

    I am ussing a DLL created by another party. I have the list of the C declaretions. I have been able to write a seq that can turn the comport ON/OFF or select a different port but I have not been able to send or recieved any data. I have created an array of bytes(unsigned 8-bit integers)to send and recieved data but nothing goes out or in.

    Hi Toro,
    There is an example in your \Examples\AccessingArrays\PassingArrayParametersToDLL directory that illustrates exactly how to pass TestStand arrays as arguments to dll functions. The source files for the .dll are located in the same directory.
    For more information on passing arrays as parameters to modules you should read the "DLL Flexible Prototype Adapter" section of Chatper 13 in the TestStand User Manual, and pay special attention to the subsection entitled "Array Parameters". You can access the User Manual from the TestStand Start Menu group, the TestStand Sequence Editor's Help menu, the \Doc directory, or online at the following link:
    http://digital.ni.com/manuals.nsf/websearch/50B69DA356B8D38C86256A0000660E6B?OpenDocumen
    t&node=132100_US
    Jason F.
    Applications Engineer
    National Instruments
    www.ni.com/ask

  • How to pass Parameter to Oracle Report from portal

    Dear All
    I create a report use Oracle Report, and the file name is "Account.rdf"
    This report have a start date parameter and a end date parameter. I put this
    report to the report server, and then add a new entry to the cgicmd.dat file,
    so i enter the URL into IE and pass the start date and end date parameters to
    the report.
    And now, i want to put this report into portal, but how can i config the
    start date parameter and the end date parameter?? i want provide a interface
    to the end-user, so user can select which date he want to display. It is
    possible?? How can i config?? Would you give me some idea.
    Thanks for your help.
    Tony

    You will have to Register your .rdf in Oracle Portal. The following document gives details.
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=170178.1

Maybe you are looking for