How to Cast objects in Process Business Language??

Hi all
How can i do Casting in (Process Business Language ) "PBL" (e.g: from Object to Customer) ????
Thanks

Suspect I might not be helping much here, but in direct answer to your question - you can cast a Java.Lang.Object to a BPM Object using this syntax in PBL:
// myObject is a Java.Lang.Object variable
clientCase as Model.ClientCase = Model.ClientCase(myObject) This will not help you though if you're trying map the attribues in a Java serializable object to a BPM Object's attributes automatically using this technique. If this is what you're trying to do, you'd need to individually set the attributes from the Java.Lang.Object to the corresponding BPM Object attributes.

Similar Messages

  • How to cast object type to integer type?

    Hi,
    Object [] temp;
    Int [] value;
    How can I assign temp to value? (value = temp?)
    In other words how to cast array of type object to array of type integer?
    Thanks a lot.

    Hi,
    Object [] temp;
    Int [] value;
    How can I assign temp to value? (value = temp?)
    In other words how to cast array of type object to
    array of type integer?
    Thanks a lot.That my friend, is (sometimes) illegal. other times use
    value = (Integer[]) temp;
    Pray that temp is holding an Integer array so that you dont throw a runtime exception.
    I am assuming you know the diff between "int" and "Integer".

  • Newbie Question: How to cast object that returns from objectAtIndex?

    If I have an array of custom objects, I want to do something like
    [myArray objectAtIndex:indexPath.row].myCustomData = ...;
    But the only way I get it to work is if I do
    MyCustomObject *tempObject = [myArray objectAtIndex:indexPath.row];
    tempObject.myCustomData = ...;
    What is the right way to do this?
    Thanks,
    Brian

    Have you tried with parenthesis ? or at least with the brackets ?
    I am not on my mac, I can't test it...
    ([myArray objectAtIndex:indexPath.row]).myCustomData = X;
    By the way, you can wrap your code between {code} to have it nicely displayed on the forum.
    Barth

  • Casting object refrences in java

    hello
    i am stuck with a problem.i need a solution from you guys out there.i want to know how to cast object references in java.please provide me with a sampe code that does object casting.i need it very urgently.i hope you guys will help me in this matter and do the needful.
    thanks & regards
    vikamgdg

    This may be a bit premature, but I call troll.
    http://forum.java.sun.com/thread.jsp?thread=538948&forum=31
    http://forum.java.sun.com/thread.jsp?thread=538801&forum=31
    http://forum.java.sun.com/thread.jsp?thread=538785&forum=31
    If vikramgdg doesn't actually possess the "Troll-nature"™, it needs to read "How To Ask Questions The Smart Way".

  • How to cast an Object into a specific type (Integer/String) at runtime

    Problem:
    How to cast an Object into a specific type (Integer/String) at runtime, where type is not known at compile time.
    Example:
    public class TestCode {
         public static Object func1()
    Integer i = new Integer(10); //or String str = new String("abc");
    Object temp= i; //or Object temp= str;
    return temp;
         public static void func2(Integer param1)
              //Performing some stuff
         public static void main(String args[])
         Object obj = func1();
    //cast obj into Integer at run time
         func2(Integer);
    Description:
    In example, func1() will be called first which will return an object. Returned object refer to an Integer object or an String object. Now at run time, I want to cast this object to the class its referring to (Integer or String).
    For e.g., if returned object is referring to Integer then cast that object into Integer and call func2() by passing Integer object.

    GDS123 wrote:
    Problem:
    How to cast an Object into a specific type (Integer/String) at runtime, where type is not known at compile time.
    There is only one way to have an object of an unknown type at compile time. That is to create the object's class at runtime using a classloader. Typically a URLClassloader.
    Look into
    Class.ForName(String)

  • How to find unassigned master data text objects in process chain in bi

    Hi
    Please let me know how to find the unassigned master data text objects in process chain.

    hi,
    actually if u want to find that , is ur Unassigned Infoobject in present in process chain or not, , that u can find out just by right
    click on your DTP (master data Txt datasource--> Master data text ), if this is present in Process chain, then on ryt click, the process chain option will be active. by clicking over that u can find the name in which this exists.
    thanks.

  • How to cast an object in JSF?

    I am working on a travel application. A user can have several bookings and a booking can have several components. A component can be either air or hotel. I want to list the user's bookings on the client using JSF datatable.
    <h:dataTable var="component" value="#{booking.components}">
    Now depending upon the class of component I need to present different information.
    My question is how to cast the variable in JSF ?
    Thanks

    You can use the String value of Object#getClass()#getName() to lookup the classname and evaluate it in the 'rendered' attribute.
    Basic example:
    package mypackage;
    public class Animal {}
    package mypackage;
    public class Cat extends Animal {}
    package mypackage;
    public class Dog extends Animal {}
    package mypackage;
    public class Fish extends Animal {}MyBeanpublic List<Animal> getList() {
        List<Animal> animals = new ArrayList<Animal>();
        animals.add(new Dog());
        animals.add(new Cat());
        animals.add(new Fish());
        return animals;
    }JSF<h:dataTable value="#{myBean.list}" var="item">
        <h:column>
            <h:outputText value="It's a Cat" rendered="#{item.class.name == 'mypackage.Cat'}" />
            <h:outputText value="It's a Dog" rendered="#{item.class.name == 'mypackage.Dog'}" />
            <h:outputText value="It's a Fish" rendered="#{item.class.name == 'mypackage.Fish'}" />
        </h:column>
    </h:dataTable>As far there is no way to cast objects in JSF.
    Edit
    If you find it useful, move the classname request to the superclass:
    public class Animal {
        public String getType() {
            String className = getClass().getName();
            return className.substring(className.lastIndexOf('.') + 1);
    }Which makes life easier without struggling with package names:<h:outputText value="It's a Cat" rendered="#{item.type == 'Cat'}" />
    <h:outputText value="It's a Dog" rendered="#{item.type == 'Dog'}" />
    <h:outputText value="It's a Fish" rendered="#{item.type == 'Fish'}" />Message was edited by:
    BalusC

  • How to set Actual indicator for Business Process

    Hi,
    Can anybody tell me as "how to set Actual indicator for Business Process " in Activity Based Costing.
    Regds,
    Bijay

    ok

  • How to overcome: System.InvalidCastException: Unable to cast object of type

    Hi,
    For the database connectivity, we use ODP.Net. In one of the functionality we are trying to bind an array to stored procedures and have it execute for the each iteration of the array as a bulk transaction.
    Not always but, 10% of the times the function has raised the following exception
    System.InvalidCastException: Unable to cast object of type 'System.DateTime[]' to type 'System.IConvertible' .
    Has anyone ever faced such a problem, if someone has a soltuion it would be of great help to me.
    Thanks

    Hi,
    For the database connectivity, we use ODP.Net. In one of the functionality we are trying to bind an array to stored procedures and have it execute for the each iteration of the array as a bulk transaction.
    Not always but, 10% of the times the function has raised the following exception
    System.InvalidCastException: Unable to cast object of type 'System.DateTime[]' to type 'System.IConvertible' .
    Has anyone ever faced such a problem, if someone has a soltuion it would be of great help to me.
    Thanks

  • Crystal Reports Server Error - Unable to cast object of type

    Hi Everyone,
    Not sure if this is the right place to post this question but couldn't find a Crystal Reports Server section.
    After doing a windows update on my crystal reports server the following error now occurs when trying to log into .Net InfoView -
    An error has occurred: Unable to cast object of type 'CrystalDecisions.Enterprise.InfoObject' to type 'BusinessObjects.Enterprise.Desktop.InfoView'.
    I found the following article which I followed and re-installed the .net components as well as ensured all services are enabled.
    Article: https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_boj_bip/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233303335333433323337%7D.do
    The error still occurs.
    I did some further investigation and found that a similar error occurs in the Admin Console when I try and open the Crystal Report DataSources.
    This is the error page that comes up
    Server Error in '/businessobjects/Enterprise11/WebTools' Application.
    Unable to cast object of type 'CrystalDecisions.Enterprise.InfoObject' to type 'CrystalDecisions.Enterprise.Desktop.Report'.
    +Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information
    about the error and where it originated in the code.+
    +Exception Details: System.InvalidCastException:
    Unable to cast object of type 'CrystalDecisions.Enterprise.InfoObject' to type 'CrystalDecisions.Enterprise.Desktop.Report'.+
    Source Error:
    +The source code that generated this unhandled exception can only be shown when compiled in debug mode.
    To enable this, please follow one of the below steps, then request the URL:+
    1. Add a "Debug=true" directive at the top of the file that generated the error. Example:
      <%@ Page Language="C#" Debug="true" %>
    or:
    2) Add the following section to the configuration file of your application:
    <configuration>
       <system.web>
           <compilation debug="true"/>
       </system.web>
    </configuration>
    +Note that this second technique will cause all files within a given application to be compiled in debug mode.
    The first technique will cause only that particular file to be compiled in debug mode.+
    +Important: Running applications in debug mode does incur a memory/performance overhead.
    You should make sure that an application has debugging disabled before deploying into production scenario.+
    Stack Trace:
    InvalidCastException: Unable to cast object of type 'CrystalDecisions.Enterprise.InfoObject' to type 'CrystalDecisions.Enterprise.Desktop.Report'.
       +CrystalDecisions.Enterprise.WebContent.WebSamples.DataSources.Common.datasourceInfoFromReports(ArrayList reports) 226
       +CrystalDecisions.Enterprise.WebContent.WebSamples.DataSources.Datasources.Main() 1821
       +ASP.websamples_datasources_datasources_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) 531
       +System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) 98
       +System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) 20
       +System.Web.UI.Page.Render(HtmlTextWriter writer) 26
       +System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) 25
       +System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) 121
       +System.Web.UI.Control.RenderControl(HtmlTextWriter writer) 22
       +System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 2558
    Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
    Any information on how I can fix this is greatly appreciated.
    Regards
    Paul
    Edited by: Paul Griscti on Sep 3, 2008 2:52 AM

    I'd try creating a new Application Pool just for running businessobjects and crystalreportviewers11 and nothing else. 
    Although the apps are .NET, it uses COM Interop for functionality, so using a common app pool with other versions will collide.
    Beyond that - if you have a SAP Business Objects support contract - you might open a new SAP Incident ticket.
    Sincerely,
    Ted Ueda

  • What is the BEST practice - use BO or Java Object in process as webservice

    Hi All,
    I have my BP published as web service. I have defined My process input & output as BOs. My BP talks to DB through DAO layer(written in JAVA) which has Java objects. So I have BO as well as java Objects. Since I am collecting user input in BO, I have to assign individual values contained in BO to Java object's fields.
    I want to reduce this extra headache & want to use either of BO or Java object.I want to know What is the best practice - use BO or Java object as process input. If it is BO,how I can reuse BOs in Java?
    Thanks in advance.
    Thanks,
    Sujata P. Galinde

    Hi Mark,
    Thanks for your response. I also wanted to use java object only. When I use java object as process input argument..it is fine. But when I try to create Process web service, I am getting compilation error - "data type not supported".....
    To get rid of this error, I tried to use heir (BO inheriting from java class). But while invoking process as web service, it is not asking for fields that are inherited from java class.
    Then I created Business Object with a field of type java class... This also is not working. While sending request, it is giving an error that - field type for fields from java class not found.
    Conclusion - not able to use java object as process(exposed as web service) input argument .
    What is the Best & feasible way to accomplist the task - Process using DAO in Java & exposed as web service.
    Thanks & Regards,
    Sujata

  • How many types of inbound process r there

    how many types of inbound process r there for a inbound idoc?

    Hi,
    Creating an Inbound Process Code
    The inbound process code, that is, its attributes, indicates how an inbound IDoc is processed. A process code has the following attributes:
    ·        Processing type (for example, should the inbound function module be called immediately, or should a workflow or work item be started?);
    Standard: "ALE, function module called directly"
    ·        Name of inbound function module;
    ·        Error processing attributes (objects and events; see the section on objects, and so on, for error handling);
    ·        Application object type used for ALE links;
    ¡        the object type created or changed by the inbound function module. Example: An inbound ORDERS IDoc, containing a customeru2019s purchase order, creates a customer order in the receiving SAP System. Here the application object type is BUS2032, the object type for customer orders in the BOR (Business Object Repository).
    ·        The application event to be triggered (dealt with in the section on advanced techniques) is not generally used.
    For an example, have a look at the process code MATM used for material master data.
    Reward If Helpfull,
    Naresh

  • Install Info Object 0BSTAT from business content

    Hi Guys,
    I am trying to install info object 0BSTAT from business content , i have selected the options
                                 grouing "only necessary obects"   "start automaticall" "Hierarchy" ad dragged info obect from left side into collected objects and selected the install and trasport option form Install, assigned the trasnport also, it didn't give any errpor message but info object is not getting activated.
    An body had the expericence with this issue, please share you ideas how to fix the issue.
    Thanks
    Best regards
    Shekar Gunda

    Thanks for your reply Matrin.
    I looked at the log 
    Log is:
    Installation of: Onfo Object (IOBJ)
    You onl have authroization to display info object 0BSTAT
    Transfer/Merge of the content version (Object Type Infoobject)
    Activation of obects with type Info Obect
    Saving Objects with type Infoobject
    Transferring the 1 objects from type IOBJ took 0.4 seconds
    Post-Processing of objects after activation
    The post-processing lasts 0.0 seconds
    Object IOBJ 0BSTAT was written to order/task EWD*******
    You onl have authroization to display info object 0BSTAT
    I looked at the SU53 also  there is one error message  related to info object BSTAT
    Currently aunthorization Field  ACTVT Activit is   "23"
    Does this mean i don't have autorization to install of info obects, do wee need any special activity is required in the for installing info object
    Please suggest me how to proceed.
    Thanks
    Best regards
    SG

  • Casting Object

    hi;
    i have to finish a coursework in two days time.it is about a program to process payroll activities in a factory.i wrote a class to create objects type employee which consists of (String name,String surname,boolean gender,int empNum...).
    the coursework asks for keeping the information generated by the program in an external file.in order to ease processing and updating the information which are in form employee,i decided to transfer employee's ,which are stored in a file named manual.dat,to a vector when i need to change or add data and to transfer employee's of vector to the manual.dat after i finished data processing.i now countered with two problems:
    1-when there is no data in manual.dat,how can i start the vector?
    2-i need to search the employee's by using empNum(employee ID number)assearchkey. how can i cast Objects in the vector to type 'employee' to get the empNums?
    please reply as soon as possible..
    thanks

    Do you mean this in #2?
    Employee emp = (Employee) vector.get(i);

  • BP change documents ( linking problem between Object id and Business Partner)

    Hi,
    We need to create a report for documents changed for a Business partner.
    This will be done in sap bw.
    on source side I have created the datasource with function module changedocument_read and I am getting most of the information
    which I want. Only missing part is Business Partner number.
    Can somebody suggest , how I would be able to link Object Id to business partner.
    I need to pull everything that is changed at BP level and the Object class selection around 30 in number.
    So I am looking for any standard function module which can provide me the link between Object id and Business partner.
    If I establish the rules to determine the Business partner from Object id , its getting bit difficult.
    Can somebody please help/suggest.
    I have gone through many documents and scn posts but unable to find anything on this.
    Thanks !

    Hi, looking at the change history header table CDHDR it seems that object ID simple equals the internal format of the business partner number.

Maybe you are looking for

  • Error wile Outbinding of the message in multi mapping

    HI I have a scenario SIEBEL->XI->R/3 the data from siebel system is send through web services in xi this data is mapped into 2 IDOCS using multi mapping . I tested the scenario and i am getting the following error . <b><SAP:Code area="OUTBINDING">CO_

  • Safari 6.0.4 - java applet keeps running when not in use?

    Mac OS X 10.7.5 Safari 6.0.4 all the latest updates (software) as of 4/27/13 Oracle's Java r 21 also installed (latest) website: http://javatester.org/version.html NOTE: I have seen this on more than 1 computer that the 1st time running the Java appl

  • POPUP key lov stopped working in "Imported" application.

    Hi , I have a perfectly running APEX application. For some testing purpose I exported the application and again "Imported" the application in same server. But in the new application, POPup KEY LOV stopped working, i.e. if I press popup lov icon nothi

  • Ipod nano 6th generation discharges 4 hours after full charge-what can be done?

    ipod nano 6th generation discharges 4 hours after full charge-what can be done?

  • Help with a ROUND function

    Hi everyone, can someone please help me with a function to use here please. I have a nine digit number e,g (000046650 and 024063870). I would like to convert this to 4 digits before the comma and 5 digits after the comma. So it must be something like