Business logic flaw in pet store?

I am not sure if I understood correctly. In the requestmappings.xml file, we have a section like:
<url-mapping url="/validatenewaccount" screen="ACCOUNT_CREATED" useRequestHandler="true" useFlowHandler="true">
<request-handler-class>com.sun.j2ee.blueprints.petstore.control.web.handlers.AccountHandler</request-handler-class>
<flow-handler class="com.sun.j2ee.blueprints.petstore.control.web.handlers.AccountFlowHandler">
<handler-result result="1" screen="ACCOUNT_CREATED"/>
<handler-result result="2" screen="ACCOUNT_CREATED"/>
<handler-result result="3" screen="MISSING_FORM_DATA"/>
</flow-handler>
</url-mapping>
One question is both handler classes are executed BEFORE the web page displayed. But generally we need to perform some actions AFTER the page load but before going to next page. There is no logic to perfrom this kind of action in the pet store design.
One example, suppose we are adding a customer. We have two pages -- customer_add displays some input fields, customer_view display the customer info after the adding. We have the following steps:
1) Display the customer_add page;
2) When user fills the form and click submit, we must do the input validation BEFORE saving the info to db. So we use a FlowHandler class to validate the user input. If fails, we need redisplay customer_add page;
But if validation successful, we must save the info to db BEFORE displaying customer_view page. But we cannot do it here, as the RequestProcessor (supposed to do sth against db through EJB) must be executed BEFORE the page load and BEFORE the FlowHandler.
Someone may argue why don't we save the into to db at the beginning of displaying customer_view page. Remember, the customer_view page is nothing related to the customer_add page. The customer_view page could be called from somewhere else, such as search customers, view customers, edit customers.
The customer adding logic should really follow the customer_add page.
I am not sure if it is a design flaw or I just understand wrong.
Thanks,

Hmm, seems like you did not understood correctly.
The validation of data posted by the user form should be done in the AccountHandler class (in your example, that means in a RequestHandler class), not in the AccountFlowHandler. If the data is not valid, throw an exception or set some value in the session, than the flow handler will use the value to decide what page to display ( back to the input page or success page, etc).
If the data is valid, the AccountHandler generates an event that goes to the EJB layer and updates the DB.
Regards,
Cristian

Similar Messages

  • Can we use WHO columns in Business Logic implementation

    Hi,
    Can we use WHO columns for business logic implementation..?
    From one table I need to pick up the latest record. I have a ActionDate column in the table which stores the date of the action.
    But on the same day there can be multiple action records. ie Multiple records have same ActionDate.
    Select * from action_table where action_date=(maximum action_date)
    The above query will return more than 1 record.
    Now can I use the Creation_Date which is a WHO column to identify the latest record..?
    Will it introduce any issues if I use creation_date WHO column?
    Usage of WHO column in application logic, Is it against the Standards ?
    Thanks a lot.

    I guess you are talking about populating the value using the history column creation_dt from EO.
    If so, you can use then. We are using them in all our applications to populate WHO columns of our table.
    Infact as far as I know, even Oracle application uses them.
    They generally populate the timestamp, so you may need to format them when doing date comparisons.
    Hope that helps.
    Amit

  • How to show logic of picking multiple stores to fulfill an order line item

    I'm still learning some basics with OPA.
    How do I represent the logic of picking multiple stores to fulfill an order line item when no one store has the requested quantity? A concrete example would be greatly appreciated as I'm still thinking procedurally for solutions.

    Hi!
    I believe this is following on from the thread:
    Calculating least cost of a product across stores using OPA
    So I'm assuming we're using a similar data model.
    If we want to involve quantity as well as cheapest price, then I'm assuming the requirement is:
    Find the cheapest price for the product from all the stores which still have quantity left of that product.
    This is where inferred relationships come in handy.
    Here is an example of what you can do with them to help solve this requirement.
    the store is a member of the product's stores if
    .ExistsScope(the store's prices)
    ..the price's product name = the product name
    the store is a member of the product's stores with remaining stock if
    .the store is a member of the product's stores and
    ..ExistsScope(the store's quantities)
    ...the quantity's product name = the product name and
    ...the quantity's amount > 0
    Then we basically want to pick the cheapest price for the product from the members of the relationship "the product's stores with remaining stock"
    Note that "the product's stores with remaining stock" could obviously be many instances, all with different prices. But for an order, a product needs to come from only one place! The deciding factor to "pinpoint" one place from this potential list of many could be based on anything, such as location, sales ranking, etc. But in this case Im going to assume lowest price is the decider.
    In the previous post we created a simple relationship between "the product" and "the prices" (which are contained by the store).
    We can make a more powerful relationship now:
    the price is a member of the product's available prices if
    ForScope(the price's store, the main store)
    .the main store is a member of the product's stores with remaining stock
    (I'm using an alias here to be 100% sure of which store is in scope)
    Now we can use the rules in the previous post, but change the relationship to the more advanced one we just created:
    the product's cheapest available price = InstanceMin(the product's available prices, the price's amount)
    Then
    the product's cheapest available store name = InstanceValueIf(the product's available prices, the price's store name, the price's amount = the product's cheapest available price)
    This is all psuedo code so many need some slight tweaks when you put it into OPM. Make sure you set up the relationships in a property file and declare all the attributes etc.
    Inferred relationships are really useful as "filters" sometimes. Here we first filtered all the stores which have prices for the product (i.e. have it in their catalogue). Then we filtered to get a list of all the stores which have stock remaining for the product. From that, we could find the cheapest available price.
    This is by no means the only way to do it! It's also by no means a simple problem but the great thing about OPA is that you can put all of the relationship config rules in the system rule folder / word doc, meaning that the source / business rules can still look relatively simple (in the end, it only took 2 lines of source rules to find the cheapest available price!). Once you've got the right set up and invested time in designing your data model, you will find it much easier to solve seemingly complex problems across entities.
    One word of warning though: if you have thousands of instances of prices, stores, products etc. then there is a performance impact of using many inferred relationships and alternatives should also be considered.
    Hope this helps!
    Feel free to contact me for more help on this. If you are relatively new to OPA and trying to tackle this you should consider investing in some training.
    Cheers,
    Ben

  • What can be considered as the business logic of simple data entry form

    Hi all,
    I want to separate my applications logic into layers. It is a simple data entry form and doesn't contain any complex business logic. So I want to get this simple business logic to different layer. But the problem is, I cannot clearly identify what are business logic of this kind of simple data entry form.
    How do I separate business logic of this simple data entry form to another layer?
    any help is appreciated,
    Thanks in advance,
    Dil.

    dcminter wrote:
    It is a [form] and doesn't contain any complex business logic. So I want to get this simple business logic to different layer. But the problem is, I cannot clearly identify what are business logic of this kind of [form].Are you asking which bits are business logic?
    Suppose that the data comes into your system immaculate from some external system. Imagine that it will go out into some other system. The bits that you would still have to write are your business logic.That's a nice practical definition. Thank you, I'm stealing it.
    Also interesting to note that validation falls into that category... say you're recieving data from a magical external source... you still have to validate it.
    And of course you'd still have to store it somewhere, ans retrieve it.
    Yep, I definately like that definition.
    Cheers. Keith.

  • Duplicate key exception in Pet Store

    When signing into Pet Store javax.ejb.DuplicateKeyException is received even though a new
    and unique ID is being created when the sigin is performed through the Account page.
    Looking at diagnostic traces, one can see that the create customer logic is driven twice.
    The second time it tries to create the ID it fails with a DuplicateKeyException. When
    first Creating a new account via the "Sign In" link or Creating a new account following a
    CheckOut you do not get the exception.
    Scenario:
    1) Go to Pet Store.
    2) Select "Enter the store".
    3) Select Account on the Pet Store Main Page.
    4) Since you have not signed in, you are presented with the sign in screen. On that
    screen, create a unique User ID and Password.
    5) Update your account information and select Submit on the Account information page.
    6) The failure occurs.

    Hi,
    This does not seem to be a bug on other systems, so perhaps something is a bit off in your environment? Try to shut down j2ee and the cloudscape DB, run the cleanup script from the bin directory of the RI app server, then restart the app server and DB, and redeploy the petstore.
    You may want to send this to the interest list next time
    http://archives.java.sun.com/archives/j2eeblueprints-interest.html
    hope that helps,
    sean

  • Business logic behind 2lis_12_vahdr ,itm and sch

    Hello friends,
    Could u help me in explaining the business logic behing the extractors 2lis_12_vahdr,VAitm,VASCH for deliveries?
    Also why we use process keys and where do we use process  key??
    Thanks in advance
    srini

    Hi Srinivas!!!
    The logic is like this.
    When an order is made, it will have order number, line item number and schedule line item number. The order number is the header data and all information related to the header data is stored in 2LIS_11_VAHDR. Each order may have different line item, (different material may be ordered) that is stored in 2LIS_11_VAITM. Each Line item may be need to be delivered at different time because the users requested or may be there was no enough material in the store, this is stored in 2LIS_11_VASCL.
    When delivery (2LIS_12_VDITM)gets created, it will abide by the schedule line agreement.
    that is the logic.
    thanks.
    Wond

  • Model Object / Business Logic question

    Hello,
    Question about how to architect the model objects and services in our system. We are defining our own Model Object / Transfer Objects without the use of an ORM tool (long story). Some of these model objects have to maintain Association objects such as:
    public class Teacher {
         private List<StudentAssociation> kids;
    public class StudentAssociation {
         private Teacher teacher;
         private Student student;
         private Date fromDate;
         private Date toDate;
         // Getters / Setters ....
    }My question is, where should the logic be to add, remove student associations? Originally we had it defined in the Teacher model object with:
    public void addStudentAssociation(Student student, Date fromDate, Date toDate);
    public void removeStudentAssociation(Student student, Date fromDate, Date toDate);But I am hesitant to put such logic in the Model Object. I always thought those should be pretty empty of any sort of business logic. Instead I want to have a TeacherService that does that and instead just a getter/setter on the Teacher object for the Association List. However, in doing that, I find I have to create a new List of Associations then call the setAssociations method on the Teacher object, which seems kind of strange.
    Is it bad to put the add/remove method in the model object itself? The remove logic has a bit of business logic in it, so it seems weird being there.

    Not sure I can be of much help, but here's my two cents worth:
    You have a teacher object and student object. A teacher doesnt really have an association with a student. I think you need another object such as a class object. I class has a teacher and the students (an association can be a business association, social association, etc). That same teacher may be assigned to other classes (provided they dont occur at the same time since the teacher cant be in the two classes at the same time. Likewise, for a student. Complicating things is the fact that a teacher of one class may be a student in another class. Also, a class may exist that has students but no assigned teacher yet (your original idea wouldn't be able to handle this since you will need a teacher before you add students). Another case, you have a class without students. Still another case, you have people (either future students, or teaching staff that haven't been assigned as teachers yet), but no classes yet., I think it would be best to figure out a database schema first (you can use Oracle Lite, MySql, etc).
    here is an example:
    Assuming you are putting this in a database I would create tables and fields something like this:
    Person ((a person is either a student or teacher, or just someone that is no longer a student or teacher but may be one day))
    personId not null
    firstname not null
    middleName nullable
    lastname not null
    ssn not null
    Class ( a class is where a teacher teaches students))
    classId not null
    nameOfCourse not null
    building nullable (may not be assigned yet)
    room nullable (may not be assigned yet)
    startDate ((when the class starts)) nullable
    endDate ((when the class ends)) nullable
    teacherId ((this is the parentId from the person table)) nullable
    Students
    personId ((this is the personId from the person table))
    classId
    associations:
    a class has 0 or 1 teacher,
    0 or many students
    a teacherId must exist in the person table as a personId
    a studentId must exist in the person table as a personId
    (if you delete a personId in the person table, it cascades deletes any teacherId or studentId of the same value)
    your class has a collection of students. therefore:
    private List<Student> students
    Your class will also have something like
    addStudent(Student student) (throw exception if student already exists) (note you dont pass in the start and
    end date since its the class's responsibility for start and end date, not student)
    isStudent(Student student) (return true if student is already in class, false if not)
    deleteStudent(Student student) ((returns true if student found and deleted, false if student not found to delete)
    Your business logic can check things such as if the start date occurs before the end date (an error), you have a class with no teacher or no students, etc. The first case you can do in the database with constraints if you want, but the second you cant since you want to store info for a class even if a teacher isn't assigned to it yet.
    One way to do this is to have a validate() function in your class object. The validate() function checks such things as a class with no teacher and returns a collection of warnings if it finds anything wrong. All the above is just something off the top of my head. So there may be some issues with my approach that you will have to work out.
    Good Luck!

  • Sample application Pet Store

    Best Regards
    I would like to know which site I can download the sample application called Pet Store, I searched the web and all links lead me to the java.net site, but can not find where to download the. jar.
    I appreciate the attention.

    Thank you very much for responding. However, explore the site, and the links redirect me to the java.net site showing the error "NOT FOUND" The Page You Were looking for does not exist. You May Have mistype the address or the page May Have moved.

  • Problem in creating a callable object of type Business Logic

    Hi SDN,
    I am trying to create a callable object of type Business Logic in CE.
    When I give all information and click Next, I get this error message.
    Error while loading configuration dialog: Failed to create delegate for component com.sap.caf.eu.gp.ui.co.CExpConfig. (Hint: Is the corresponding DC deployed correctly? Does the DC contain the component?)
    Can anybody help me out with this problem.
    Regards,
    Sumangala

    Hi.
    I'm having the same problem as Senthil in NW2004s SP15 with my application service and methods not showing up in the Callable Object wizard for Composite Application Services after I choose the Endpoint.  The only application name that shows up in the wizard is caf.tc, and the only service names that show up for it are LDDataAccessor, Metadata, and PropPermissionService.
    My IDE is on one machine and the application server I deploy to is located on a different machine.  My endpoint to the remote application server looks to be correctly configured.  The Composite Application Service seems to be deployed properly as I'm able to see it and test that it works in the Web Services Navigator <http://remotehost:50000/wsnavigator/>
    My deployed application service is a remote enabled service and is also web services enabled as well.
    I'm not sure if this is relevant, but I noticed that the generated Java code does not create any remote EJB interfaces (only home and local interfaces were generated).
    Something else I noticed is that when I proceed to the External Service Configuration -> Business Entities screen <http://remotehost:50000/webdynpro/dispatcher/sap.com/cafUIconfiguration>, I only see three business entities displayed, and the following error message is displayed: "Corrupt metadata has been detected. This may prevent some objects from being displayed. Check the server log for more details."  I was unable to find anything in the instance log files.  Is the error message indicative of the problem?
    I am developing locally without a NetWeaver Development Infrastructure (NWDI) in place.
    I'm wondering if the credentials specified in the endpoint require any special roles or privileges.
    Senthil, do any of these additional descriptions apply to you as well?
    Edited by: Ric Leeds on Jun 20, 2008 4:37 PM

  • Future support for using PL/SQL core business logic with ADF BC

    We want to migrate our large Forms client/server (6i) application to ADF, possibly using a migration tool like Ciphersoft Exodus.
    One scenario could be to use ADF BC and ADF-Faces or a different JSF-Implementation for presentation and business layer but keep our heavy PL/SQL-businesslogic inside the Oracle database in packages, triggers, functions and procedures.
    This scenario could be chosen due to the huge amount of interconnected logic inside the database (10 years of development; no technical components; any package may access any table and more of this kind of dependencies). The business logic nowadays held in Forms client will be moved mainly into the database as a prerequisite to this scenario.
    Choosing this "keep-logic-in-DB"-scenario we need a good support by ADF BC to do so. We know and prototyped that it is possible to call some PL/SQL via JDBC from ADF BC and it is possible to use stored procedure calls for standard business entity data access (ins, del, upd, ..). But this does not solve our problems. We want to reuse core business logic coded in PL/SQL. This is much more than change the ADF standard behavior for an update with an own PL/SQL-call.
    Now my question:
    Will there be a kind of sophisticated support to use ADF BC in combination with database-kept logic?
    If so, when will this happen and how will the common problems of transactional state inside the database and inside the ADF BC be solved? Any plans or ideas yet?
    Many other clients do have similar applications built in Forms and PL/SQL and would be glad to hear about a path of direction.
    I've read the technical article 'understanding the ADF BC state management feature' which you have contributed to. One current limitation is pointed out there: Using PL/SQL with ADF BC limits ADF AM pooling to 'restricted level' which reduces scalability.
    Are you aware of additional main problems/tasks to solve when using PL/SQL heavily with ADF BC, which we have to think about?
    Thank you for any response.
    Ingmar

    My main problem is two 'concurrent' areas holding state in an application system based on DB-stored PL/SQL-logic in combination with ADF BC.
    For a new System everything can be made ok:
    Sure, it is possible to build a new system with the business logic included in ADF BC only. All long-living state will be handled in the BC layer ( including support for UnitsOfWork longer than the webside short HTTP-requests and HTTP-sessions and longer than the database transactions.
    For an old system these problems arise:
    1. DB data changes not reflected in BC layer:
    Our PL/SQL-logic changes data in tables without notifying the ADF BC layer (and its cache). To keep the data in ADF BC entity objects identical to the changed database content a synchronization is needed. BC does not know which part of the application data has been changed because it has not initiated the changes through its entity objects. Therefore a full refresh is needed. In a Forms4GL environment the behavior is similar: We do frequently requeries of all relevant (base)tables after calling database stored logic to be sure to get the changed data to display and to operate on it.
    -> Reengineering of the PL/SQL-logic to make the ADF BC layer aware of the changes is a big effort (notifying BC about any change)
    2. longer living database transactions
    Our PL/SQL-logic in some areas makes use of lengthy database transactions. The technical DB-transaction is similar to the UnitOfWork. If we call this existing logic from ADF BC, database state is produced which will not be DB-committed in the same cycle.
    This reduces scalability of ADF BC AM pooling.
    Example:
    a) Call a DB-stored logic to check if some business data is consistent and prepare some data for versioning. This starts a DB-transaction but does not commit it.
    b) Control is handed back to the user interface. Successful result of step a) is displayed
    c) User now executes the versioning operation
    d) Call another DB-stored logic to execute the versioning. DB-transaction is still open
    e) Business layer commits the transaction automatically after successful finishing step d). Otherwise everything from a) to e) is rolled back.
    -> redesign of this behavior (= cutting the 1to1 relation between LogicalUnitOfWork and the technicalDatabaseTransaction is a big effort due to the big amount of code.

  • Is there any logical flaw in this query?

    DB version:10gR2
    Do you see any logical flaw, room for improvement in this query
    SELECT SHIP_QRY.RCVD_SHPMT_NBR, SHIP_QRY.ORIG_SHPMT_NBR, SHIP_QRY.DC_ORD_NBR, SHIP_QRY.WORK_ORD_NBR, SHIP_QRY.MFG_PLNT, SHIP_QRY.CONS_CASE_PRTY, SHIP_QRY.CONS_PRTY_DATE, SHIP_QRY.CONS_SEQ, SHIP_QRY.MFG_DATE, SHIP_QRY.RCVD_DATE, SHIP_QRY.XPIRE_DATE, SHIP_QRY.SHIP_BY_DATE, SHIP_QRY.PROC_IMMD_NEEDS, SHIP_QRY.VOL, SHIP_QRY.EST_WT, SHIP_QRY.ACTL_WT, SHIP_QRY.CASE_SIZE_TYPE, SHIP_QRY.PKG_NBR, SHIP_QRY.PKG_TYPE, SHIP_QRY.PO_NBR, SHIP_QRY.SHIP_VIA, SHIP_QRY.TRLR_NBR, SHIP_QRY.STAT_ID, SHIP_QRY.STAT_DATE_TIME, SHIP_QRY.VENDOR_CNTR_NBR, SHIP_QRY.PHYS_ENTITY_CODE, SHIP_QRY.PLT_ID, SHIP_QRY.TIER_QTY, SHIP_QRY.SNGL_pdt_CASE, SHIP_QRY.PUTWY_TYPE, SHIP_QRY.OUT_OF_ZONE_INDIC, SHIP_QRY.LAST_FROZN_DATE_TIME, SHIP_QRY.LAST_CNT_DATE_TIME, SHIP_QRY.SPL_INSTR_CODE_1, SHIP_QRY.SPL_INSTR_CODE_2, SHIP_QRY.SPL_INSTR_CODE_3, SHIP_QRY.SPL_INSTR_CODE_4, SHIP_QRY.SPL_INSTR_CODE_5, SHIP_QRY.MOD_DATE, SHIP_QRY.MOD_DATE_TIME, SHIP_QRY.USER_ID, SHIP_QRY.RETN_DISP_CODE, SHIP_QRY.FINAL_DISP_CODE, SHIP_QRY.INCUB_DATE, SHIP_QRY.SUPP_FTZ_CASE, SHIP_QRY.RCPT_IN_PROC_FLAG, SHIP_QRY.CD_MASTER_ID, SHIP_QRY.VENDOR_MASTER_ID, SHIP_QRY.VOCO_INTRNL_REVERSE_ID, SHIP_QRY.VOCO_INTRNL_REVERSE_PLT_ID, SHIP_QRY.CASE_NBR, SHIP_QRY.ship, SHIP_QRY.LOCN_ID, SHIP_QRY.PREV_LOCN_ID, SHIP_QRY.DEST_LOCN_ID FROM SHIP_QRY WHERE ( SHIP_QRY.CASE_NBR = :1 ) FOR UPDATE WAIT :"SYS_B_0"
    Edited by: user10583227 on Jan 13, 2009 7:05 PM

    How do you expect from us to find your logical flaw when we don't have any idea about your intention?
    Please post the details with some sample input data and your required output data along with brief explanation.
    Got me?
    Regards.
    Satyaki De.

  • Problem with Business Logic Services Logic Editor

    Hi,
    I am trying to go to Logic Editor under Business Logic Services. I'm getting error that "Unable to launch xMII"
    Is there any java related problem in my machine?
    Regards,
    Amalesh

    Amalesh,
    What version of xMII are you using 12.0 by chance.  If so goto the Java Web Start -> File -> Preferences -> and set your proxy to "None".  I would not recommend reinstalling Java as this will not solve your problem and if you are on xMII 12.0, the recommended version is 1.4.2_13 as a minimum.
    Regards,
    Erik

  • Error in Pet Store Execution

    Hi, my pet store has set up fine .
    when go to pet store add something to the cart, verify the shipping address and
    at time of clicking on continue to ship, it gives me huge error saying ,"insert
    no successful".
    If I continue working in the same session with the same very instance of browser
    it gives me the foll error:
    Server Error
    Bean has been deleted.
    Oops! Your request cannot be completed. The server got the following error.
    com.sun.j2ee.blueprints.petstore.control.exceptions.GeneralFailureException:
    Bean has been deleted.
         at com.sun.j2ee.blueprints.petstore.control.web.ShoppingClientControllerWebImpl.handleEvent(ShoppingClientControllerWebImpl.java:142)
         at com.sun.j2ee.blueprints.petstore.control.web.RequestProcessor.processRequest(RequestProcessor.java:84)
         at com.sun.j2ee.blueprints.petstore.control.web.MainServlet.doProcess(MainServlet.java:111)
         at com.sun.j2ee.blueprints.petstore.control.web.MainServlet.doGet(MainServlet.java:91)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2456)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2039)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    If anybody can help me out with this...
    ---------anjali

    "Anjali" <[email protected]> wrote in message
    news:3be1269e$[email protected]..
    >
    Hi, my pet store has set up fine .
    when go to pet store add something to the cart, verify the shippingaddress and
    at time of clicking on continue to ship, it gives me huge error saying,"insert
    no successful".
    If I continue working in the same session with the same very instance ofbrowser
    it gives me the foll error:
    Server Error
    Bean has been deleted.
    Oops! Your request cannot be completed. The server got the followingerror.
    >
    >
    >
    com.sun.j2ee.blueprints.petstore.control.exceptions.GeneralFailureException:
    Bean has been deleted.
    atcom.sun.j2ee.blueprints.petstore.control.web.ShoppingClientControllerWebImpl
    .handleEvent(ShoppingClientControllerWebImpl.java:142)
    atcom.sun.j2ee.blueprints.petstore.control.web.RequestProcessor.processRequest
    (RequestProcessor.java:84)
    atcom.sun.j2ee.blueprints.petstore.control.web.MainServlet.doProcess(MainServl
    et.java:111)
    atcom.sun.j2ee.blueprints.petstore.control.web.MainServlet.doGet(MainServlet.j
    ava:91)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :265)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :200)
    atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:2456)
    atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2039)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    If anybody can help me out with this...
    ---------anjaliafter editing the customer_ejb.xml file as detailed here:
    http://e-docs.bea.com/wls/docs61/petstore/bea_deployathon.html#oracle you
    need to rebuild the Petstore (step 6 of the same doc) and redeploy it.
    HTH
    Bill

  • How To Set the Resultstate of Business Logic CO for Loop Decision Action

    Hi,
    I'm using a pre-conditional loop block in my GP process and using a Business Logic CO for the loop decision action. My expectation is the business logic CO should be executed at background and based on its resultstate the loop flow will happen. I've 2 resultstates in the loop decision (bus logic CO) - Continue and Break. I'm setting these two resultstates in the following way :
    Continue : BOOL(@currentLevel < @totalLevel)
    Break : !BOOL(@currentLevel < @totalLevel)
    currentLevel and totalLevel are the two input parameters (unsigned int type) of the business logic CO. If I test the CO it works fine and displays the correct resultstate. But at runtime the process gets paused at the loop decision action CO. I see the loop decision action link in my GP workcenter and UWL and on clicking of it nothing happens. If I refresh the screen still it's there as before.
    Anybody who can throw any light on this issue will be highly appreciated. And reward points guranteed for any help to solve the issue
    Thanks in advance,
    Dipankar

    Hi,
    Well I solved this issue myself ! After lot of research I found out that the resultstates should be in all small case <b>continue</b> and <b>break</b> and NOT Continue or Break.
    But now I've a different issue:
    I've an initial action under a sequential block. Then the pre-conditional loop block with a loop decision action and a loop body block(seq block).
    The expectation is initially the decision action should get the output param passed by the initial action and then in the iterations it will get the values passed by the output params of the loop body action. To achieve that I have mapped the output param of the initial action to the input param of the decision action and the input and output param of the loop body action. But it seems that the loop decision action though mapped to both the output of the initial action and the loop body action takes the value only from the initial action over the iterations and the values from the loop body action are not getting passed to the loop decision action. The context parameter value of the loop decision action remains static and it becomes an infinite loop.
    Any help to resolve this issue will be highly appreciated.
    Thanks,
    Dipankar

  • How to Display Multiple Rows in Business Logic Editor

    Hi Friends, I took the standard BAPI:   BAPI_MATERIAL_GETLIST and followed the SAP- xMII documentation. It is not showing any records. Does any one have good example. Please let me know.
    If I run the same BAPI from R3 system, it is showing 7 records.
    Can I display the data in Business Logic editor? Please help.

    Hi Dilip
              I have gone through your post and I think that the info provided by yu is not sufficent to answer yur question exactly but i would suggest yu the following solutions :-
    1. It may be the case that yu are not looping on the Response XML from the BAPI. You need to loop on the repeating node of the Response XML of the BAPI and on each loop yu need to append the record read to a xMII Output XML document using Row structure. Finally Yu can assign the document to the Output variable.
    2. Check for the type of Output Variable. I guess that it's String type. In that case, convert it to xml type.
    Hope it helps.
    Amit

Maybe you are looking for

  • FAQ: How do I submit a bug report or feature request or otherwise give feedback about Premiere Pro?

    The best way to submit a bug report or feature request is to use the bug-report/feature-request form. The Premiere Pro team doesn’t  necessarily see and record every post on every forum and social network, but we do see, record, and track every entry

  • Mail Program - popup message won't let me access my emails

    I sure hope someone can help me with this problem! I received an email to my gmail account, and when I tried to open in up with my Mail program - I got this message box " To view this page, you must log in to area "WebMail" on secure97.inmotionhostin

  • Huge size of ARTMAS IDOCs

    Hello gurus, We are facing an issue in trasmiting generic articles(MARA-ATTYP = 01) along with all its variants via outbound ARTMAS IDOC(Transaction BD10). Some of the articles have around 40-50 variants. When such generic articles are transmitted vi

  • URLDecoder / URLEncoder don't like non-ASCII, even with UTF-8 explicit

    Here's my code: import java.net.*; import java.io.*; public class Decoder     public static void main(String[] args)      if (args.length != 1) {          System.err.println("Usage: Decoder UTF-8-URL-encoded-string");          System.exit(1);      St

  • Creative zen nano plus

    I´ve bought a creative zen nano plus and couldn´t make it work on my Mac. Does anyone knows if there is any restrictions for creative mp3 players to install on Macs? There´s anything I can do? Thanks