Regarding Inheritance in BPM Objects

Hi,
We are having requirement such that we are three objects: dataObject (containing one attribute - Name) , interfaceObject(containing attribute - City) and flowObject. The requirement is such that we need to inherit the properties of dataObject and interfaceObject into flowObject. Hence, we use feature of ALBPM known as "Type Inheritance" as "Behaviour" and "Inheritance" mapped as interfaceObject.
Now we are having main process where we have made a instance variable as "insDetails" of type flowObject and set the value of insDetails.Name as "Rajat" and insDetails.City as "Mumbai".
Now we are having one interactive activity which uses the instance variable "insActivity" of type interfaceObject inside the screenflow just after setting the above values for Name and City in Automatic activity before Interactive activity.
Flow: Begin --> Automatic ( Setting the value for insDetails ) --> Interactive ( Mapping is done with insActivity ) --> Screenflow ( we want to get the values of City and Name as defined in Automatic activity as "Mumbai" and "Rajat". Also, insActivity inherit from interfaceObject).
The problem is that when we are trying to log the values for insActivity.Name and insActivity.City inside the screenflow, we are getting "Null Pointer Exception". We are unable to get the values of insDetails into insActivity inspite of the fact that insActivity inherits from dataObject.
Please let me know how can we access the values inside the screenflow for inherited objects.
Thanks,
Abhishek

HI Heidi,
  I beleive your understanding is correct & agree the name is slight confusing This difference is not clear however reading the label descriptions of the checkbox carefully will help to clear configuration.  Documentation at [1].
Just to demonstrate let us use geometrixx example. In author instance
*    Go to http://<host>:<port>/content/geometrixx/en/products/triangle.html
*    On the right side you would see iparasys, Select "Cancel Inheritance" & save.
*    Go to http://<host>:<port>/content/geometrixx/en/products/triangle/overview.html
*    You would see it is not inherited & if you are in edit mode you would see "Parent canceled inheritance"
For second case
*    Go to http://<host>:<port>/content/geometrixx/en/products/square.html
*    In Iparasys Select "Disable Inheritance" & save.
*    IN edit mode you would see "Inheritance disabled" & in preview mode not inherited from the parent page.
[1]   http://dev.day.com/docs/en/cq/current/wcm/default_components.html#Inheritance%20Paragraph% 20System%20%28iparsys%29
Thanks,
Sham

Similar Messages

  • Regarding BPM Object Retrieval in PAPI API

    Hi,
    I am using Oracle BPM10gR3 to develop BPM processes. I am having external connectivity of BPM processes with external Java application through PAPI API. I am having a BPM Object defined as "ApplicationObject" under Module which consists of instanceID and activityID. A instance variable is defined of this BPMObject type with Array i.e. insAppObject of type ApplicationObject[]. I have now loaded this instance variable with array length 5.
    Now, I need to retrieve BPMObject[] in PAPI API which I am unable to perform. Usually, we do the following to load a BPM Object in PAPI API.
    Class c = Class.forName("xobject.Module.BPMObject");
    instanceinfo.getData("instanceVariableID");
    To Retrieve BPMObject[], I have tried this but no luck.
    Class c = Class.forName("[Lxobject.Module.BPMObject;");
    Using this class, I am getting "Class Not Found Exception".
    Can anyone suggest on the above.
    Thanks in advance,
    Abhishek

    Hi Avishek,
    There is workaround for this...you can save the instance as Object/DynaObj then go for toString() call that will give your biusiness object as XML msg in string format..from there you can extract a xml node value using x-path....i tried this once and worked for me....but i m not getting the code snipetnow ..else i would have pasted here....:(
    Rgds,
    Biltu

  • Unable assign a BPM Object field value to a JSP Variable using "invoke"

    Hi,
    I'm unable to retrieve a value returned by a BPM Object Method and use it in JSP. Here is what I'm trying to achieve:
    BPM object named : "myObject" has a method "getRequiredValue" which returns a "String". I want to assign the value returned by "getRequiredValue" to a JSP Variable "myVariable" using invoke method as below:
    <% String myVariable = ""; %>
    <f:invoke var="${myObject}" methodName="getRequiredValue" retAttName="myVariable"/>
    <% out.println ("myVariable: " + myVariable); %>
    When I execute the above code I don't get the value being returned by "getRequiredValue" into "myVariable".
    Any help would be highly appreciated!
    regards,
    MK

    1. Make sure you mark the "Server Side Method" property of the getRequiredValue method to "Yes".
    2. I guess you dont need to specify "<% String myVariable = ""; %>". Try removing it.
    3. Replace "<% out.println ("myVariable: " + myVariable); %>" by <c:out value="${myVariable}"/> just in case!
    4. Lastly, I hope "myObject" is the name of the instance variable in your screenflow, and not the BPM object name.
    Hope this helps
    -Hemant

  • Calling a method in BPM Object from jsp page

    hi all,
    I try to call a method from BPM Object using <f:invokeUrl >
    I change server side method properties to yes.
    and then how can i get request and response object inside the BPM method.
    Thanks.

    Thanks for ur response,
    But i mention about BPM method inside BPM Object.
    i found this inside the documentation.
    methodName(Fuego.Net.HttpRequest request, Fuego.Net.HttpResponse response)
    i need to match above BPM method and <f:invokeUrl > tag. am i right?
    But i don't know how to create method with argument "Fuego.Net.HttpRequest request, Fuego.Net.HttpResponse response" inside BPM Object.
    I can't find any place to define method argument inside Oracle BPM studio.
    I don't know how to parse argument like "Fuego.Net.HttpRequest request, Fuego.Net.HttpResponse response"
    With Regards,
    Wai Phyo
    Edited by: user8729650 on Sep 9, 2009 7:03 PM
    Edited by: user8729650 on Sep 9, 2009 9:20 PM

  • Calling a method in BPM Object from jsf page

    Hi All,
    How do I call a method in BPM object from JSF page? Is it possible to invoke it in a manner similar to invoking a method from managed bean in JSF application?
    Please help.
    Thanks and Regards,
    Veronica

    You can use f:invoke (or f:invokea to with parameters)
    For ajax calls, you can use f:invokeUrl to get the URL to a particular method within your BPM object, although make sure the Server-Side Method property is set to Yes.
    http://download.oracle.com/docs/cd/E13154_01/bpm/docs65/taglib/index.html

  • 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.

  • XML Object to BPM Object, is possible?

    My process consumes a Web Service that returns a Object (XSD).
    When I catalog this Web Service in the BPM catalog, BPM saves the return of Web Service as a XML Object.
    The problem is that I use JSP in my application, so when I need to show this object in JSP, I need to create a BPM Object similar to XML Object and map the values of the XML Object to Object BPM, then if I need change the Web Service returns (XML object) I also need to change the BPM Object. This is very annoying.
    Exists a way to convert a XML Object to BPM Object? BPM provides some API to make this?

    Yo can create a BPM Object that inherits from an XML Object.
    Hope it helps

  • How to refer the BPM objects in Project to Project.

    Hi,
    I have created some BPM obejects in Project A, i want to use the same Obejct in Project B.
    How to refer the Objects across the Project.
    Could pls some one help me on this.
    Regards,
    Anandh P

    Here are a couple ways to share BPM Objects across projects.
    You can right mouse click a BPM Object in a project and then export it. This will create a zip file that can then be imported into a Module in another project.
    There is a new feature in 10g that allows you to create a dependency between projects. If you define one project to be dependent on another then it can use the BPM Objects found in the other one. To do this, right mouse click the project's name in the Project Navigator tab -> Project Preferences -> Dependency -> select the project you want to be dependent on from the dropdown. This is based on the project's currently visible in the Workspace directory (the directory you are prompted for when Studio first starts up).
    Dan

  • Question regarding Inheritance.Please HELP

    A question regarding Inheritance
    Look at the following code:
    class Tree{}
    class Pine extends Tree{}
    class Oak extends Tree{}
    public class Forest{
    public static void main(String args[]){
      Tree tree = new Pine();
      if( tree instanceof Pine )
      System.out.println( "Pine" );
      if( tree instanceof Tree )
      System.out.println( "Tree" );
      if( tree instanceof Oak )
      System.out.println( "Oak" );
      else System.out.println( "Oops" );
    }If I run this,I get the output of
    Pine
    Oak
    Oops
    My question is:
    How can Tree be an instance of Pine.? Instead Pine is an instance of Tree isnt it?

    The "instanceof" operator checks whether an object is an instance of a class. The object you have is an instance of the class Pine because you created it with "new Pine()," and "instanceof" only confirms this fact: "yes, it's a pine."
    If you changed "new Pine()" to "new Tree()" or "new Oak()" you would get different output because then the object you create is not an instance of Pine anymore.
    If you wonder about the variable type, it doesn't matter, you could have written "Object tree = new Pine()" and get the same result.

  • 'fuego.xobject.util.InvalidContextKey: Invalid BPM Object context key'

    Hi ,
    i am trying to integrate the JSP in ALBPM studio 6.0
    while running the application i am getting the following error.
    Unexpected error during interactive component execution.
    Unexpected error during interactive component execution. Caused by: This Execution is not waiting for a result Caused by: The task could not be successfully executed. Reason: 'fuego.xobject.util.InvalidContextKey: Invalid BPM Object context key'. Caused by: Invalid BPM Object context key fuego.web.execution.exception.UnexpectedExecutionException: Unexpected error during interactive component execution. at fuego.web.papi.TaskExecutor.execute(TaskExecutor.java:187) at fuego.workspace.servlet.ExecutorServlet.doAction(ExecutorServlet.java:117) at fuego.workspace.servlet.BaseServlet.doPost(BaseServlet.java:228) at fuego.workspace.servlet.BaseServlet.doGet(BaseServlet.java:219) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at fuego.workspace.servlet.AuthenticatedServlet.service(AuthenticatedServlet.java:61) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at sun.reflect.GeneratedMethodAccessor126.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Unknown Source) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:245) at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152) at fuego.web.filter.SingleThreadPerSessionFilter.doFilter(SingleThreadPerSessionFilter.java:64) at fuego.web.filter.BaseFilter.doFilter(BaseFilter.java:63) at sun.reflect.GeneratedMethodAccessor123.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Unknown Source) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:217) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:197) at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152) at fuego.web.filter.CharsetFilter.doFilter(CharsetFilter.java:48) at fuego.web.filter.BaseFilter.doFilter(BaseFilter.java:63) at sun.reflect.GeneratedMethodAccessor123.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Unknown Source) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:217) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:197) at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50) at
    Any clue regarding this will be highly appreciated ..
    Thanks in advance
    regards
    Lalatendu

    Hi ,
    i got the answer finally !! :))
    there was one small block missing from my engine.xml file in side package *<Workspace><Project Name>\config\engine.xml*
    that is
    *<node name="startPapiWs">*
    *<map/>*
    *</node>*
    but i couldn't figure out where i missed out the steps for configuration because of which the proper xml generation didn't happened.
    After this my application started working ..if any one facing similar problem may be helpful
    Thanks
    Lalatendu

  • Process Web Services and BPM Objects

    Hi,
    I try to expose a web service for a specific process (not PAPI-WS) for process creation. Works well but only if I use only simple types like String, etc. as input arguments. But when I try to use an BPM object, I get an error like 'Undefined variable 'arg1''.
    So, is it not possible to use such a process web service using BPM objects as arguments?
    Regards
    Matthias

    Yes it's true but Netbeans uses one of the existing SOAP implementations to do it. I'm almost sure that it uses one of the most popular implementations JAX-WS RI or Axis by default.
    Regards,
    S&#322;awomir Wojtasiak

  • BPM Objects in valid values

    Hi,
    I want to display a combo box showing some strings to the user, but having something else in the background. Using e.g. an integer in the background is easy. But is there a way to put complex objects (i.e. BPM objects) "behind" the string values?
    Thanks & Regards
    Matthias

    Hi,
    we usually use this way to show objects in combo box: BPM object has an id attribute (Integer). We will associate combobox with this id. Open attribute properties if 'id'. Mark 'dynamic method' on valid values. Mark 'method return descriptions' too. You have to create a method thats returns a String[int]. This will contain text displayed on combo box associated to this id. Users will see the text but you get the id of the selected object.
    Regards,
    Juan Escot

  • HOW TO : Initialize / On Load of a BPM Object Presentation

    Hi,
    We have a BPM Object Presentation. On Load of the same, we need to enable/disable a UI field basing on data of one of the BPM Object attributes.
    If we put it in constructor, it is not allowing to enable/disable the Presentation UI Component as it is a 'client side' operation.
    Wanted to know where we can put the code to 'initialize' of a presentation or do something 'on load' of the presentation form.
    Regards,
    user8702013

    Hello,
    You can create a method which can be called on the initialization of the screen.
    To map the method with the presentation, you need to click on the presentation(be careful not to select one of the components). You will then see the properties of the entire presentation in the right hand side pane.
    Change the initialization method from <None> to the method you want to call on the loading of the presentation.
    This method will get executed every time the presentation is called.
    If you are making any DB calls or want to interact with some other external resources in this method then change the Server side property of this method to Yes.
    In case of queries revert back.
    HTH.
    Regards,
    Jaydev Doshi

  • How to define a process level constant to be used inside a BPM Object?

    I need to define a constant with the name of the process of the instance that it is executing.
    I have a BPM Object that it is shared with multiple processes.
    Inside that BPM Object I have a method that needs the name of the process it is running.
    Is there any way to define a constant visible anywhere in the process? By anywhere I mean inside an BP-Method, not in an Automatic Activity.

    Not sure if this what you're looking for, but in a samples project named 'ExpenseReimbursement' there is a way to set and get global Process Options.
    It might not be suitable for your problem (and maybe not the cleanest solution), but such a setup might be used to construct a globally available variable.
    Kind regards,
    RL

  • Sotring an array of BPM Objects

    Hi
    I need to sort an array of BPM objects in my PBL code. I tried using Java.Util.Comparator class for this but somehow, it is not working.
    Here is what I tried,
    I created a subclass of Java.Util.Comparator class (Type inheritance) called MyComparator and created the compare method under it for comparing MyObject objects.
    I use following code,
    MyObject[] ttt;
    ttt[0] = new MyObject();
    ttt.clear();// this I use to initialize otherwise the extend method throws error.
    ttt.extend(arg1: "abcd", arg2=23.2);
    ttt.extend(arg1: "xyz", arg2=13.2);
    Arrays.sort(arg1 : ttt, arg2 : new MyComparator());
    I would expect this code should sort the arra ttt as per the comparison logic in the MyComparator. The code executes the compare method properly, but somehow the ttt arra remains unchanged.
    Has anyone faced similar issue? any help would be appreciated.

    Thanks Dan for the solution.
    But my requirement is bit more complicated.
    I need to sort the array dynamically based on different fields.
    e.g. Lets say the object contains 4 attributes - att1,att2,att3,att4.
    I need to sort the same array dynamically on any of these attributes. at one place I may want to sort on att1, while at other place I may need the array sorted on att3.
    The Java.Util.Comparator provides me this flexibility, but somehow it doesnt work.
    Is there any other alternative?
    Setting the primary key for the BPM object would not help this dynamic behaviour. Can we change the primary key settings at runtime and then call the sort method?
    I feel the reaso for Java.Util.Comparator not working may be because the PBL does not pass parameters by reference, instead it passes parameter by value, thats why the code "Arrays.sort(arg1 : ttt, arg2 : new MyComparator());" does not change the contents/order of the input array ttt. Is there any way we can eforce parameter passing by reference in PBL?

Maybe you are looking for

  • How to get the text of several cells in one? (Operator "&")

    Hi there, I have a list of done and planned tasks. In the one column, there is the description, in the other is the status like "plan" "open" and "closed". Now I want to create an overview.How can I filter the "open" tasks and display them in one cel

  • Can't set background color of boolean

    I'm trying my hand at a custom control.  It's a simple boolean 'arrow' indicator.  I started by placing a classic "flat square button", then imported the 'false' and 'true' versions of the arrow, which correspond to red and green. However, I want a 3

  • How do I create a Jumpstart CD

    Hi, Can anyone out there point me to a step by step guide to creating a "Jumpstart" CD. I'd like to be able to just put the CD in the drive & get the system up & running with as little interaction as possible (Any interaction that I'm required to do

  • Read Receipts

    Read Receipts - I see the string that is required to be cut and pasted into Terminal that enables the request for read receipts in Mail. My question is exactly how do you do that?

  • EJB - OAS 4.0.8.1

    I have tried to use Deployment Wizard to deploy EJB into OAS. Surprisingly, it generally works :) But it's no way I can change deployment descriptor for my EJB (e.g. STATEFUL to STATELESS). If I change .dd file generated by the wizard, it will just o