Business Rules- Two Decision Services (.decs) on the same composite

Hello.
I have a composite where i designed a rules dictionary (.rules) and created a decision services metadata(.decs). This decision service declares the corresponding decision function for which it was created a .WSDL for invocation via web service. The decision function receives an object called 'document' with name space '..../document'.
I can invoke the decision service via soapUI and receive the expected results.
Then I created another rules dictionary (.rules) and other decision services metadata(.decs). This decision service declares another decision function for which it was created another .WSDL for invocation via web service. The decision function receives an object called 'notificationDecisionFact' with name space '..../notificationDecision'. The notification decision is an xml element composed of other types like 'document', 'workTask', among others.
When i tested the first decision service again (the one previosly working) i obtain an error saying something like:
unexpected element <{.../document} document>. The expected elements were <{.../workTask} workTask>,<{.../workTaskRequest} workTaskRequest>
But when i came to jdeveloper and disable the option 'invoke as a webservice' on the second decision function (eliminating the corresponding WSDL) the first decision service comes back to normal functioning.
I don't have any ideia why the service/work memory/BR engine is expecting that elements when i have two WSDL from different rules dictionary. The xml facts for both dictonary were constructed from the same set os XSD, but the WSDL seems to appear correct with the properly element types and namespaces.
Is there any issues regarding with two cecision services (.decs) on the same composite?
Any help would be very appreciated.
Thanks in advance!
Best Regards.
Bruno Silva

I am calling the stateless operation.
This is the stack trace of the error from the server diagnostics:
2011-12-30T13:45:43.929+00:00] [AdminServer] [ERROR] [] [oracle.soa.services.rules] [tid: [ACTIVE].ExecuteThread: '11' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 0000JIFE1AxFw000jzwkno1EzPhx0001Sr,0] [WEBSERVICE_PORT.name: IDecisionService_pt] [APP: soa-infra] [composite_name: Workflows] [component_name: ProcessInitiationRules] [component_instance_id: 9f7bbe05-05d6-4cde-a589-0604cb7bd579] [J2EE_MODULE.name: fabric] [dcid: 11d1def534ea1be0:6ebcb03b:1348eaaf001:-7fd1-000000000000043a] [WEBSERVICE.name: ProcessInitiationRules_InitiationDecisionService_ep] [J2EE_APP.name: soa-infra] [composite_instance_id: 250012] <.> Error while executing the rule session.[[
The rule session 250012 failed to execute.
Check the underlying exception and correct the error. If the error persists, contact Oracle Support Services.
Error while executing the rule session.
The rule session 250012 failed to execute.
Check the underlying exception and correct the error. If the error persists, contact Oracle Support Services.
     at oracle.bpel.services.rules.rpi.AbstractDefaultRuleSession.execute(AbstractDefaultRuleSession.java:272)
     at oracle.bpel.services.rules.rpi.oracle2.OracleRuleSession.execute(OracleRuleSession.java:270)
     at oracle.bpel.services.rules.impl.DecisionServiceImpl.process(DecisionServiceImpl.java:331)
     at oracle.bpel.services.rules.fabric.BusinessRulesServiceEngine.request(BusinessRulesServiceEngine.java:634)
     at oracle.integration.platform.blocks.mesh.SynchronousMessageHandler.doRequest(SynchronousMessageHandler.java:139)
     at oracle.integration.platform.blocks.mesh.MessageRouter.request(MessageRouter.java:179)
     at oracle.integration.platform.blocks.mesh.MeshImpl.request(MeshImpl.java:155)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
     at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
     at oracle.integration.platform.metrics.PhaseEventAspect.invoke(PhaseEventAspect.java:59)
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
     at $Proxy294.request(Unknown Source)
     at oracle.integration.platform.blocks.soap.WebServiceEntryBindingComponent.doMessageProcessing(WebServiceEntryBindingComponent.java:1169)
     at oracle.integration.platform.blocks.soap.WebServiceEntryBindingComponent.processIncomingMessage(WebServiceEntryBindingComponent.java:768)
     at oracle.integration.platform.blocks.soap.FabricProvider.processMessage(FabricProvider.java:113)
     at oracle.j2ee.ws.server.provider.ProviderProcessor.doEndpointProcessing(ProviderProcessor.java:1168)
     at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementation(WebServiceProcessor.java:996)
     at oracle.j2ee.ws.server.provider.ProviderProcessor.doRequestProcessing(ProviderProcessor.java:562)
     at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:222)
     at oracle.j2ee.ws.server.WebServiceProcessor.doService(WebServiceProcessor.java:185)
     at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:430)
     at oracle.integration.platform.blocks.soap.FabricProviderServlet.doPost(FabricProviderServlet.java:477)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
     at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
     at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
     at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
     at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
     at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
     at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
     at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
     at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: javax.xml.bind.UnmarshalException: unexpected element (uri:"http://www.edp.pt/schema/common/gdoc/document", local:"document"). Expected elements are <{http://www.edp.pt/schema/common/gdoc/workTask}workTask>,<{http://www.edp.pt/schema/common/gdoc/workTask}workTaskRequest>
     at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(UnmarshallingContext.java:616)
     at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:244)
     at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError(Loader.java:239)
     at com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildElement(Loader.java:116)
     at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext$DefaultRootLoader.childElement(UnmarshallingContext.java:1022)
     at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement(UnmarshallingContext.java:452)
     at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(UnmarshallingContext.java:433)
     at com.sun.xml.bind.v2.runtime.unmarshaller.InterningXmlVisitor.startElement(InterningXmlVisitor.java:71)
     at com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.startElement(SAXConnector.java:137)
     at com.sun.xml.bind.unmarshaller.DOMScanner.visit(DOMScanner.java:240)
     at com.sun.xml.bind.unmarshaller.DOMScanner.scan(DOMScanner.java:123)
     at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:314)
     at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:297)
     at oracle.bpel.services.rules.rpi.JAXBFactUnmarshaller.unmarshal(JAXBFactUnmarshaller.java:91)
     at oracle.bpel.services.rules.rpi.internal.AbstractPatternConverter.convertList(AbstractPatternConverter.java:658)
     at oracle.bpel.services.rules.rpi.internal.AbstractPatternConverter.convertParameterList(AbstractPatternConverter.java:446)
     at oracle.bpel.services.rules.rpi.internal.CallFunctionStatelessConverter.convert(CallFunctionStatelessConverter.java:110)
     at oracle.bpel.services.rules.rpi.AbstractDefaultRuleSession.execute(AbstractDefaultRuleSession.java:247)
     ... 45 more
[2011-12-30T13:45:43.971+00:00] [AdminServer] [ERROR] [] [oracle.soa.services.rules] [tid: [ACTIVE].ExecuteThread: '11' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 0000JIFE1AxFw000jzwkno1EzPhx0001Sr,0] [WEBSERVICE_PORT.name: IDecisionService_pt] [APP: soa-infra] [composite_name: Workflows] [component_name: ProcessInitiationRules] [component_instance_id: 9f7bbe05-05d6-4cde-a589-0604cb7bd579] [J2EE_MODULE.name: fabric] [dcid: 11d1def534ea1be0:6ebcb03b:1348eaaf001:-7fd1-000000000000043a] [WEBSERVICE.name: ProcessInitiationRules_InitiationDecisionService_ep] [J2EE_APP.name: soa-infra] [composite_instance_id: 250012] <.> [[
oracle.fabric.common.BusinessFaultException
     at oracle.bpel.services.rules.rpi.AbstractDefaultRuleSession.execute(AbstractDefaultRuleSession.java:272)
     at oracle.bpel.services.rules.rpi.oracle2.OracleRuleSession.execute(OracleRuleSession.java:270)
     at oracle.bpel.services.rules.impl.DecisionServiceImpl.process(DecisionServiceImpl.java:331)
     at oracle.bpel.services.rules.fabric.BusinessRulesServiceEngine.request(BusinessRulesServiceEngine.java:634)
     at oracle.integration.platform.blocks.mesh.SynchronousMessageHandler.doRequest(SynchronousMessageHandler.java:139)
     at oracle.integration.platform.blocks.mesh.MessageRouter.request(MessageRouter.java:179)
     at oracle.integration.platform.blocks.mesh.MeshImpl.request(MeshImpl.java:155)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
     at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
     at oracle.integration.platform.metrics.PhaseEventAspect.invoke(PhaseEventAspect.java:59)
     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
     at $Proxy294.request(Unknown Source)
     at oracle.integration.platform.blocks.soap.WebServiceEntryBindingComponent.doMessageProcessing(WebServiceEntryBindingComponent.java:1169)
     at oracle.integration.platform.blocks.soap.WebServiceEntryBindingComponent.processIncomingMessage(WebServiceEntryBindingComponent.java:768)
     at oracle.integration.platform.blocks.soap.FabricProvider.processMessage(FabricProvider.java:113)
     at oracle.j2ee.ws.server.provider.ProviderProcessor.doEndpointProcessing(ProviderProcessor.java:1168)
     at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementation(WebServiceProcessor.java:996)
     at oracle.j2ee.ws.server.provider.ProviderProcessor.doRequestProcessing(ProviderProcessor.java:562)
     at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:222)
     at oracle.j2ee.ws.server.WebServiceProcessor.doService(WebServiceProcessor.java:185)
     at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:430)
     at oracle.integration.platform.blocks.soap.FabricProviderServlet.doPost(FabricProviderServlet.java:477)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
     at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
     at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
     at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
     at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
     at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
     at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
     at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
     at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
[2011-12-30T13:45:43.977+00:00] [AdminServer] [NOTIFICATION] [] [oracle.wsm.agent.WSMAgent] [tid: [ACTIVE].ExecuteThread: '11' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 0000JIFE1AxFw000jzwkno1EzPhx0001Sr,0] [WEBSERVICE_PORT.name: IDecisionService_pt] [APP: soa-infra] [J2EE_MODULE.name: fabric] [dcid: 11d1def534ea1be0:6ebcb03b:1348eaaf001:-7fd1-000000000000043a] [WEBSERVICE.name: ProcessInitiationRules_InitiationDecisionService_ep] [J2EE_APP.name: soa-infra] Message Type is normalized, exiting agent.processFault()
[2011-12-30T13:45:43.978+00:00] [AdminServer] [NOTIFICATION] [] [oracle.wsm.agent.WSMAgent] [tid: [ACTIVE].ExecuteThread: '11' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 0000JIFE1AxFw000jzwkno1EzPhx0001Sr,0] [WEBSERVICE_PORT.name: IDecisionService_pt] [APP: soa-infra] [J2EE_MODULE.name: fabric] [dcid: 11d1def534ea1be0:6ebcb03b:1348eaaf001:-7fd1-000000000000043a] [WEBSERVICE.name: ProcessInitiationRules_InitiationDecisionService_ep] [J2EE_APP.name: soa-infra] Message Type is normalized, exiting agent.processFault()
[2011-12-30T13:45:43.994+00:00] [AdminServer] [ERROR] [OWS-04115] [oracle.webservices.service] [tid: [ACTIVE].ExecuteThread: '11' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 0000JIFE1AxFw000jzwkno1EzPhx0001Sr,0] [APP: soa-infra] [dcid: 11d1def534ea1be0:6ebcb03b:1348eaaf001:-7fd1-000000000000043a] [arg: FabricProvider] [arg: javax.xml.rpc.soap.SOAPFaultException] An error occurred for port: FabricProvider: javax.xml.rpc.soap.SOAPFaultException.

Similar Messages

  • Running Business Rules with Decision Service using WebDav

    Hello everybody, I have a problem when I change a rule from Rules Author.
    I have the following scenario:
    Machine1 - I have Oracle Soa Suite 10 and I have defined a rule set using Rules Author pointing to a WebDav repository on Machine2
    Machine2 - I have define my WebDav repository, it contains the rule "amountToPay > 100"
    Machine3 - I have a deploy of a BPEL process using a Decision Service and Decide Activity elements pointing to my WebDav repository
    When I test my BPEL process it works correctly, but after I change the rule in Rules Author (on machine1) to "amountToPay > 200" the next invocations of BPEL process still evaluating the rule "amountToPay > 100" and doesn't evaluates my last changes on the rule, and I need to redeploy my BPEL process so that it takes the new changes on the repository.
    I am using Assert facts, execute rule set, retrieve results, and reset the session operation pattern in decision service and assertExecuteWatchStateless in invoke activity. I tried using assertExecuteWatchStateful as well but there was no difference in the result, any idea of that?
    Does the BPEL process needs to be redeployed?
    What can I do so that my rules take effect?
    I've searched for documentation but I couldn't find any solution.
    Thanks in advance.
    Luciano
    Message was edited by:
    user606994

    Hi,
    I am new to Oracle Fusion and working on Business Rules.
    Can you please tell me the changes need to be done in the sample java application to connect to the webDAV repository(carrental example which they have given in user guide)?
    Thanks in advance.
    I am using 10.1.3.1 version.

  • Service Registry: Publish the same service for two different business syst.

    Hello all,
    i am trying to publish a webservice in the Service Registry of a PI 7.1 EHP1 and i'm facing a problem. I have configured two Business Systems that use the same Service Interface, let's say Dev and Qua systems. So, this two business systems can be senders of the webservice. I have been able to publish the first Sender Agreement properly, but when i try to publish the second Sender Agreement as the service is already publish i get the following error:
    One service definition with the same name 'SI_I015_EneGISDeviceLocationServicesInternalMessage_In(urn:enemalta.com.mt:iubs:integrations)' found; do you want to delete this object from the Services Registry and continue publishing?
    I've been told that this error might be a permission problem but the user i am using has all the permissions required. Does anyone know how to solve this issue?
    Thank you very much in advance!
    Roger Allué i Vall

    Hi Roger,
    Is that problem solved for you?
    I am looking for inputs on a similar issue here. I need to have a single service but with two different endpoints (for two sender business systems) published in SR.
    Thanks,
    Marz

  • Business Rule Error: Fact not found in the rule engine working memory, rule

    I am trying to create a simple decision table with an input(ValidateInput) and a output(ValidateOutput). The input and output schemas have unbounded and nested elements(Parent-child relationship). When I create a condition(specific condition on input) and in the action I am asserting the output object. But when I run using EM it throws the following exception. It would be helpful if somebody could tell me what could be the problem. Please note when I set the output as ValidateInput object then it runs fine. Also it executes fine with ValidateOutput if it doesn't have unbounded(List) element inside it.
    Error Message: {http://xmlns.oracle.com/OracleRules10/OracleRules10_DecisionService_1}operationErroredFault
    Fault ID     rules:211
    Fault Time     Jun 18, 2011 10:45:13 AM
    Non Recoverable Business Fault :
    Fact not found in the rule engine working memory, rule session execution failed. The rule session 270013 failed because an instance of the fact com.example.customer.ValidateResponse could not be found in the working memory of the rule session. This is most likely a rule modeling error. The decision service interaction expects the fact instance to exist in the working memory of the rule session. Check the rule actions in rule designer and make sure that a fact of the expected type is being asserted. If the error persists, contact Oracle Support Services. 270013
    Edited by: reachsky on 18 Jun, 2011 9:57 AM

    It's working now..I had to use Global variable to declare child element of the output variable and use the same during action.

  • ERROR: MyService.jws:715:There are two or more operations with the same schema-element 'ns0:MyNameSpace' on the input message in a web service file or callback interface.

    I have two web service operations that have the same complex type as their input
    parameter. I want to map this type to an existing schema. I can successfully
    do this with the first operation using XQuery but when I attempt to do this with
    the second operation I get the following error:
    ERROR: MyService.jws:715:There are two or more operations with the same schema-element
    'ns0:MyNamespace' on the input message in a web service file or callback interface.
    ERROR:      SUGGESTION: Use different schema-element values for each of those operations.
    How can I use different schema-element values? The input parameters are to be
    mapped to the same schema and same element since they are the same for both operations....

    I am having the same problem. How did you resolve this..?? could you please tell me the solution??
    Thanks
    Shari

  • We are a two iPhone family, both on the same service provider. My wires iPhone is unable to connect to the home network where as mine is! In the settings her phone has no details for the IP address etc where as mine does! I cannot even enter the details.

    We are a two iPhone family, both on the same service provider. My wires iPhone is unable to connect to the home network where as mine is! In the settings her phone has no details for the IP address etc where as mine does! I cannot even enter the details manually.
    I have done resets on off and nothing? HELP!

    What is that and how. I have 3 airports all configured identically and connected to one router via ethernet!
    A power cycle is powering down for ~ 1 minute and powering back up.

  • How to avoid that two or more people altering the same Sales Order

    I'm looking for a way to avoid that two or more people altering the same Sales Order at the same time.
    If someone has entered a Sales Order in the system and something needs to be adjust it can be done by two or more people at the same time. The problem is that when someone is saving these changes, the changes of another person, who is still working on the same order, get lost.
    So what we need is an alert that someone is already using this order and that no other person can make any changes at that time. So the order needs to be blocked for altering for any other person at that time.
    To avoid this I think you have to do something with the Stored Procedure. Or has someone a more simple and better solution. So far I didn't find a standard option in Business One neither a solution in this forum.
    Best regards,
    Tim

    Tim,
    There is nothing in the application settings in Business One that could be used to prevent this.  You may post this to the SDK forum as well and perhaps there is a way to achieve this through SDK.

  • How to avoid that two or more people alter the same Sales Order same time

    I'm looking for a way to avoid that two or more people altering the same Sales Order at the same time.
    If someone has entered a Sales Order in the system and something needs to be adjust it can be done by two or more people at the same time. The problem is that when someone is saving these changes, the changes of another person, who is still working on the same order, get lost.
    So what we need is an alert that someone is already using this order and that no other person can make any changes at that time. So the order needs to be blocked for altering for any other person at that time.
    To avoid this I think you have to do something with the Stored Procedure. Or has someone a more simple and better solution.
    I've already put this thread in the Business One forum and someone suggested to put it in the Business One SDK forum, as there isn't a solution in Business One itself.
    So if someone can give me a direction for a solution I would be very pleased.
    Best regards,
    Tim

    Hi Tim,
    The only thing that comes close to what you want in standard SBO is Data Ownership. However, this can't stop someone editing a document that is already being edited.
    You can't use stored procedures to track which document is open because the SBO_SP_TransactionNotification proc (which is the only one that you are able to customise) is triggered when a document is updated or added (or cancelled or closed) and not when the document is actually being edited in the user-interface.
    You could do this by writing an addon that uses the UI API to trap events in the sales order form. In theory, a sales order is being edited if the sales order form is in Update mode (ie in order for the form to be in Update mode, the user must have selected an existing document and changed the value of at least one field). You can trap the event of the user changing a value and then log the user and document in a table. When other users try to edit the same document, you could check the table and then prevent them changing values. When the first user clicks on the update button (or cancels the update or closes the form etc etc) you can remove the lock on the document. However, I have doubts as to how robust it would be. The problem with this kind of locking solution is that you sometimes get 'stranded' locks (eg user was editing a document when their workstation crashed) and the solution can end up being more troublesome than it is worth.
    Kind Regards,
    Owen

  • When our iPad is in use on the internet, my iMac internet connection goes off. I can't get the two devices to work at the same time with the AirPort Express. Is there a setting somewhere I may have missed?

    When our iPad is in use on the internet, my iMac internet connection goes off. I can't get the two devices to work at the same time with the AirPort Express. Is there a setting somewhere I may have missed?

    When two or more devices conflict it typically means that the DHCP service is either misconfigured or is not running at all. DHCP provides IP addresses to local network clients.
    Is your AirPort Express base station the only router in your current network configuration? That is, is it connected directly to an Internet modem and not to another router upstream of it?

  • Two remote objects calls on the same php class

    Hi to all,
           I've encountered a strange issue while developing with remote objects.
    I've a mxml component with an init() method inside which is called by a menu.
    When the init() method is called it makes 7 remote object calls which are bound to some components' dataprovider.
    Among this calls I've got 2 remote object which refer to the same remote class. This because I have to call the class twice and the bind the result to two different combobox. Below you find the code:
    <mx:RemoteObject id="myFile" source="myRemoteClass" destination="amfphp"  showBusyCursor="true" makeObjectsBindable="true" fault="traceFault(event)"/>
    <mx:RemoteObject id="myXls"  source="myRemoteClass" destination="amfphp"  showBusyCursor="true" makeObjectsBindable="true" fault="traceFault(event)"/>
    in the init function I make this calls:
    myFile.listDir("dir_1")
    myXls.listDir("dir_2")
    then in the mxml code I bound the result of myFile to combobox1 and the result of myXls on combobox2.
    The problem arise when I call the myXls' listDir method. When I call it I receive the following error:
    code:
    Client.Error.DeliveryInDoubt
    Message:
    Channel disconnected
    Detail:
    Channel disconnected before an acknowledgement was received
    The strange thing is that not only the myXls object returns this error, but also all the other 6 remote object return the same error above.
    I'm not sure, but I guess that the error could be caused by the two remote object which call the same php remote class. If I comment one of the two calls everything works fine.
    Do you have any suggestion about?
    Thanks!!
    Bye
    Luke

    Hi Jan.
    1) We have the 2 VO, each with 3 rows to fill in data. What I mean is that when i just fill in all the fields for the first row of the first VO, and the value of one of these fields is bigger than 50, then after the exception is thrown and the message is displayed, the fields for the first VO are duplicated and shown in the second VO as if the user had inserted them.
    2) We tried yesterday the validateEntity and a Method and Atributte Validator approaches after reading that white paper with the same results.
    The validation is correctly done using any of the those methods.
    I will try to reproduce this issue with the HR schema.
    Thanks in advance once again.

  • Hi, does someone know if I can use two Apple tv's with the same iTunes library? Thanks

    Hi, does someone know if I can use two Apple tv's with the same iTunes library?
    Thanks

    Yes you can use two (or more) AppleTVs with one iTunes library. They can both stream from iTunes (or the internet) at the same time, as long as you have a good working LAN and internet connection.

  • Can I have two separate iTunes accounts on the same computer?

    Can I have two separate iTunes accounts on the same computer?  My wife's music is much different than mine.  Can we have different iTunes libraries to work with on the same computer?

    Yes. Launch iTunes with the Shift key held down as needed, or use separate Windows user accounts on the computer.
    (107261)

  • I have two iphone 4's with the same name on one computer.  Can I change the name of one so that I can sync each phone separately

    I have two iphone 4's with the same name on one computer.  Can I change the name of one so that I can sync contacts separately?

    How to rename your device in iTunes

  • If two iPhones are linked to the same Apple ID can the other phone see the iMessages I'm sending, received or both?

    If two iPhones are linked to the same Apple ID can the other phone see the iMessages I'm sending, received or both?

    Yes, if both devices is using the same apple id for imessage.

  • Can iCloud on a Windows 7 PC be used with two different Apple accounts at the same time?

    Can iCloud on a Windows 7 PC support two different Apple accounts at the same time?

    You should be able to do this by using the Multifox add-on - http://br.mozdev.org/multifox/

Maybe you are looking for

  • Error: response does not start with HTTP

    hi, i am using a MIDP class to send a string to a java servlet which then returns a .gif image. the string is being successfully to the servlet, but an exception is being thrown when the image is being sent back. java.io.IOException: response does no

  • How to make this query more efficient

    Hi, i have query to find out the count of records based on certain conditions like below. SELECT count(*) FROM new_orders WHERE card_number IS NOT NULL AND exp_date IS NOT NULL AND card_id in ( select card_id from old_orders ); There are millions of

  • Can we export portal in Evalution version?

    Hi All, I have downloaded oracle 10g evalution version(10.2) from oracle network. I want to know can I export my portal from this version ? Beacause the script files required for export and import like contexp.cmd,secexp.cmd etc are not present in my

  • Few errors during login..

    I install Oracle 10g on Centos 4. Database work good, but ones I must restart my computer and after that when I try to login I've got this errors: Enter user-name: system Enter password: ERROR: ORA-01034: ORACLE not available ORA-27101: shared memory

  • SAP BPC

    Hi all, I have enough exp in BW/BI/BPS. But I don't have exp in SEM-BCS.Now I am thinking to move to BPC in the down the line 6 months. Is my decision is correct? Can I co-op with BPC? When I can expect the total BPC product in the market? Any study