Fuego BPM object mapping in PAPI

I am currently using ALBPM 5.7 version. My ALBPM process is using one Fuego BPM Objects as instance variables. I need to access the process via PAPI. What is the equivalent Java object type for typical Fuego BPM objects, per say that has few attributes with String, Time and Int types in order to pass that Fuego Object type from instance arguments.
-- Deha Peker
Edited by dpeker at 05/07/2008 11:05 PM

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

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

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

  • The task failed with error: Invalid BPM Object context key, can any one hel

    The application works fine on version 5.7. I am trying to migrate to 10.3 angetting the error when tried to execute task. This is coming up from opening a jsp page; don't know exact code/line number as the error message is in a popup window and doesn't show it clearly in logs:
    The task could not be successfully executed. Reason: 'fuego.xobject.util.InvalidContextKey: Invalid BPM Object context key'.
    See log file for more information [Error code: workspace-1255544311265]
    The log shows the below starting from just before the error upto the complete error msg:
    ExecutionDispatcher.actionId: RUN_INSTANCE_TASK
    WamJsp: commit prepare.
    java.lang.NullPointerException
    java.lang.NullPointerException
         at fuegoblock.net.NewJSP$1.prepare(NewJSP.java:185)
         at fuego.web.execution.InteractiveInvocation.retryExecution(InteractiveInvocation.java:72)
         at fuego.web.execution.InteractiveExecution.retry(InteractiveExecution.java:246)
         at fuego.web.papi.TaskExecutor.runInstanceTask(TaskExecutor.java:375)
         at fuego.web.papi.TaskExecutor.execute(TaskExecutor.java:98)
         at fuego.workspace.servlet.ExecutorServlet.doAction(ExecutorServlet.java:117)
         at fuego.workspace.servlet.BaseServlet.doPost(BaseServlet.java:229)
         at fuego.workspace.servlet.BaseServlet.doGet(BaseServlet.java:220)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         at fuego.workspace.servlet.AuthenticatedServlet.service(AuthenticatedServlet.java:83)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at sun.reflect.GeneratedMethodAccessor201.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.GeneratedMethodAccessor94.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.GeneratedMethodAccessor94.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 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Unexpected Error:The task could not be successfully executed.
    Reason: 'fuego.xobject.util.InvalidContextKey: Invalid BPM Object context key'.
    Can any one please help?
    Javed

    Hi Javed,
    I'm having similar error. What was the root cause of your problem? How did you fix that?
    Thanks,
    Bharat

  • [SOLVED] Iteration over a BPM Object.

    Hi guys, here i'm trying to solve a problem. May be simple, but i cant iterate over a BPM object without using the fuego taglibs.
    I need to iterate over the object X. The X object have one attribute, called itens, that is a group with values.
    In my JSP, using the code, works:
    <tr><td><b>Objeto.codigo:</b></td><td><f:fieldValue att="x.code" onlyValue="true"/></td></tr>
    <tr><td><b>Objeto.nome:</b></td><td><f:fieldValue att="x.name" onlyValue="true"/></td></tr>
    <tr><td><b>Objeto.item1:</b></td><td><f:fieldValue att="x.itens[0].description" onlyValue="true"/></td></tr>
    I have tried a conjuction with a <c:forEach> to iterate over the x.itens attribute without success, like this
    <c:forEach var="item" items="${x.itens}">
    ${item.description}
    </c:forEach>
    With JSP EL, there's a way to access this attribute without workarounds?
    Thanks!
    Thiago
    Edited by: user10128107 on 08/01/2009 04:04
    It was the use of the core taglib...
    Edited by: user10128107 on 08/01/2009 05:49

    madeqx wrote:
    Will this piece of code be significantly slower than iteration over an ArrayList?a) No. Iteration is O(n) in both cases.
    b) Irrelevant. If your design calls for a map, use a map, and if it calls for a list, use a list. The two serve entirely different purposes, and we don't choose between map and list for performance reasons.

  • Error while creating Attribute In BPM Object

    Hi,
    I am getting error while creating attributes in BPM Object.I am not able to open BPm object. while opening I am getting Below error.
    Please suggest.
    java.lang.StringIndexOutOfBoundsException: String index out of range: 28
         at java.lang.String.charAt(Unknown Source)
         at fuego.type.TypeFactory.createFromName(TypeFactory.java:482)
         at fuego.type.TypeFactory.forNameLazy(TypeFactory.java:263)
         at fuego.lang.CollectionTypeDescription.getIndexTypeRef(CollectionTypeDescription.java:146)
         at fuego.compiler.type.TypeRenderer.renderArrayType(TypeRenderer.java:355)
         at fuego.compiler.type.TypeRenderer.renderType(TypeRenderer.java:261)
         at fuego.compiler.type.TypeRenderer.renderArrayType(TypeRenderer.java:344)
         at fuego.compiler.type.TypeRenderer.renderType(TypeRenderer.java:261)
         at fuego.compiler.type.TypeRenderer.render(TypeRenderer.java:106)
         at fuego.compiler.type.TypeRenderer.render(TypeRenderer.java:94)
         at fuego.compiler.type.TypeRenderer.render(TypeRenderer.java:78)
         at fuego.designer.XObjectComponentStructurePanel$CellTypeRenderer.getText(XObjectComponentStructurePanel.java:612)
         at fuego.designer.XObjectComponentStructurePanel$CellTypeRenderer.getText(XObjectComponentStructurePanel.java:605)
         at fuego.ui.peer.swt.SwtTable$SwtTableModel.getColumnText(SwtTable.java:956)
         at org.eclipse.jface.viewers.TableColumnViewerLabelProvider.update(TableColumnViewerLabelProvider.java:70)
         at org.eclipse.jface.viewers.ViewerColumn.refresh(ViewerColumn.java:135)
         at org.eclipse.jface.viewers.AbstractTableViewer.doUpdateItem(AbstractTableViewer.java:386)
         at org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRunnable.run(StructuredViewer.java:466)
         at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
         at org.eclipse.core.runtime.Platform.run(Platform.java:857)
         at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
         at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:199)
         at org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java:2026)
         at org.eclipse.jface.viewers.AbstractTableViewer.internalRefreshAll(AbstractTableViewer.java:695)
         at org.eclipse.jface.viewers.AbstractTableViewer.internalRefresh(AbstractTableViewer.java:633)
         at org.eclipse.jface.viewers.AbstractTableViewer.internalRefresh(AbstractTableViewer.java:620)
         at org.eclipse.jface.viewers.StructuredViewer$7.run(StructuredViewer.java:1433)
         at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1368)
         at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1330)
         at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1431)
         at org.eclipse.jface.viewers.ColumnViewer.refresh(ColumnViewer.java:536)
         at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:1390)
         at fuego.ui.peer.swt.SwtViewer.repaint(SwtViewer.java:59)
         at fuego.ui.peer.swt.SwtColumn.setLabelProvider(SwtColumn.java:89)
         at fuego.ui.Column.setLabelProvider(Column.java:82)
         at fuego.designer.XObjectComponentStructurePanel.buildUI(XObjectComponentStructurePanel.java:299)
         at fuego.designer.AbstractEditor.build(AbstractEditor.java:542)
         at fuego.designer.AbstractEditor.init(AbstractEditor.java:133)
         at fuego.designer.XObjectComponentStructurePanel.<init>(XObjectComponentStructurePanel.java:126)
         at fuego.eclipse.studio.multipageeditor.BPMObjectMultipartEditor.createStructurePage(BPMObjectMultipartEditor.java:581)
         at fuego.eclipse.studio.multipageeditor.BPMObjectMultipartEditor.addDefaultPages(BPMObjectMultipartEditor.java:464)
         at fuego.eclipse.studio.multipageeditor.ExtendedMultiPageEditorPart.createPages(ExtendedMultiPageEditorPart.java:399)
         at fuego.eclipse.studio.multipageeditor.eclipse.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:253)
         at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:661)
         at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:426)
         at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:592)
         at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:299)
         at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:179)
         at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:268)
         at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
         at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:400)
         at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1256)
         at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1209)
         at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1604)
         at org.eclipse.ui.internal.PartStack.add(PartStack.java:499)
         at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)
         at org.eclipse.ui.internal.PartStack.add(PartStack.java:485)
         at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112)
         at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:63)
         at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:217)
         at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:207)
         at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:774)
         at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:673)
         at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:634)
         at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2737)
         at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2651)
         at org.eclipse.ui.internal.WorkbenchPage.access$13(WorkbenchPage.java:2643)
         at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2595)
         at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
         at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2590)
         at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2574)
         at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2557)
         at fuego.eclipse.ui.DefaultEditor.open(DefaultEditor.java:65)
         at fuego.eclipse.studio.EclipseWorkbench.createEditorFromResource(EclipseWorkbench.java:529)
         at fuego.eclipse.studio.EclipseWorkbench.createEditor(EclipseWorkbench.java:297)
         at fuego.designer.action.OpenCatalogNodeAction.open(OpenCatalogNodeAction.java:91)
         at fuego.designer.action.OpenCatalogNodeAction.run(OpenCatalogNodeAction.java:55)
         at fuego.eclipse.ui.EclipseAction.run(EclipseAction.java:180)
         at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
         at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546)
         at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
         at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
         at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
         at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
         at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
         at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
         at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
         at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
         at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
         at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
         at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
         at org.eclipse.equinox.launcher.Main.run(Main.java:1173)

    When you say you're having trouble "opening" the BPM Object, is it possible you instead mean you're having trouble expanding the BPM Object?
    Just a guess, but if you're having trouble expanding the BPM Object I'd suspect that the object's xcdl contents might be corrupted. You might want to consider exporting and saving a backup of the project and then try deleting the object from the Project Navigator. Rebuild the BPM Object once you've deleted it.
    Dan

  • 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

  • Is there a way to use bpm object in jsp (java)

    hello
    i could see that the bpm object can be used in jsp with javascript and fuego tag. but is there a way to use bpm object with java code?
    thank you!

    Suppose a Servlet/JSP calls java classes. In the java
    functions of those classes, is there a way to get and
    set attributes with application/session scope
    directly? Thanks.Only by passing a reference to those classes (or by tying in to the framework/container).

  • How to invoke BPM object instance variable from interactive activity?

    I have a screenflow with an automatic activity "A" followed by an interactive activity "B". "B" calls a BPM object "X" and uses a JSP presentation to show its attributes. Is there a way to use another BPM object, say type "Y", create an instance variable of that type inside "A", and get its attributes values from the JSP page associated to "B"?
    Edited by: user6473912 on 20/07/2010 03:37 PM

    Try this. It assumes you have:
    <li> a user named "auto"
    <li> a project variable named "customerType"
    <li> an instance variable named "orderAmount" that is a decimal
    <li> an instance variable named "order" that is a BPM Object that has attributes named "customerName" and "amount"
    ps as ProcessService
    xmlObject as Fuego.Xml.XMLObject
    do 
      connectTo ps
          using url = Fuego.Server.directoryURL,
          user = "auto",
          password = "auto"
      instF as InstanceFilter
      create(instF, processService : ps)
      addAttributeTo(instF, variable : "customerType", comparator : IS, value : "Gold")
      instF.searchScope = SearchScope(participantScope : ParticipantScope.ALL, statusScope : StatusScope.ONLY_INPROCESS)
      for each inst in getInstancesByFilter(ps, filter : instF) do
        // here's how to get the value inside a primitive instance variable
        orderAmtObj as Object = getVar(inst, var : "orderAmount")
        // here's how to get the value of attributes inside a complex BPM Object instance variable
        //    - in this case this is an "order" object with two attributes (customerName and amount)
        orderObj as Object = (getVar(inst, var : "order"))
        xmlObject = Fuego.Xml.XMLObject(createXmlTextFor(DynamicXml, object : orderObj, topLevelTag : "xsi"))
        logMessage "The value of the order object's customer name is: " +
               selectString(xmlObject, xpath : "customerName")
        logMessage "The value of the order object's order amount is: " +
               selectNumber(xmlObject, xpath : "amount")
        // here's a rather uninspired way to retrieve who the participant is that was assigned the instance
        logMessage "The participant assigned to this instance is: " + inst.participantId
      end
    on exit
      disconnectFrom ps
    endDan

  • 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

  • Org.apache.jasper.JasperException: Invalid BPM Object context key

    Hi - I get following error while submitting the page. Has anyone seen this error before?
    Tomcat error: 'ApplicationDispatcher[workspace] Servlet.service() for servlet jsp threw exception
    org.apache.jasper.JasperException: Invalid BPM Object context key
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
    at org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:116)
    at org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:131)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:348)
    at fuego.portal.servlet.WamServlet.requestForward(WamServlet.java:418)
    at fuego.portal.servlet.WamServlet.forward(WamServlet.java:299)
    at fuego.portal.servlet.Controller.doPost(Controller.java:275)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)

    I am also getting "Invalid BPM Object context key" when migrating the 5.7 application to Oracle 10.3. It works fine in 5.7. Did you get it resolved; no one replied here. I also logged it but not sure how good is this forum.

  • 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 Object Presentation - array items - (add / delete rows dynamically)

    Hi,
    We have a BPM Object presentation which uses a 'group' inner object to display ROWS of data. The presentation has an 'array0' created by default to handle the 'group' of rows. It also has the '+' and '-' buttons by default.
    There is a field at the upper level which shows the 'sum' of values in individual rows. It needs to 'REFRESH' when an add (+) or deletetion (-) or rows happen.
    But we see that all the controls (text boxes etc which are wired to the 'inner' bpm object of the group and the +/- buttons are one unit 'array0'. And the only method if at all, is an 'Event Listner' which is not showing any methods related to BPM Object.
    Can anyone help us with a clue as to how to handle the '+' and '-' events or wire the 'array/group' events to code - any clue with 'events'?
    This is a little urgent as it is an issue and we need to fix the same. Appreciate any quick responses/clues.
    Thanks in advance,
    -user8702013.

    The SUM field needs refresh() method to be called to reflect the new value whenever we are adding/deleting rows.
    To call this method for to show the reflection we have to declare a method on BPM object level which receives a argument of type ‘Fuego.Util.GroupEvent’, then in this method you can have your logic(here refresh() method is required to show new value on deletion/addition, hence this method is being called). This method can then be wired (it shows up) to the 'Event Listener' of the group/array.
    The newly created method will be called whenever a new row is added/deleted (Event will be fired hence method call).

  • 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 can I invoke web service in BPM Object's method?

    In ALBPM 5.7,AJaX can code by Call BPM Object's method.So I want to invoke web service via AJaX by BPM method.
    My sample code is:
    1: HelloWorldWebService ws = HelloWorldWebService();
    2: String param = "John";
    3: String retresult = "";
    4: ws.sayHello(name : parame; out result : retresult);
    and,I have import HelloWorldWebService by wsdl into catalog.
    In fact,at line 1 there is a error(fuego.connector.ConnectorRuntimeException: session is not started). Web service's instance is not created.
    Anybody can help me? thanks.

    Hi,
    I tried calling a simple webservice deployed in weblogic 8.1(see code) and it was working fine for me.
    Code for WS
    package service;
    import com.bea.control.JwsContext;
    import com.bea.jws.Protocol;
    import org.xmlsoap.schemas.soap.envelope.HeaderDocument;
    import com.bea.xml.XmlException;
    import org.w3c.dom.Element;
    import org.w3c.dom.Node;
    import org.w3c.dom.NodeList;
    public class CheckCredit implements com.bea.jws.WebService
    * @common:context
    JwsContext context;
    static final long serialVersionUID = 1L;
    * @common:operation
    * @jws:protocol form-get="false" form-post="false"
    public boolean getCreditRating(String cardNumber)
    System.out.println("Card number is: " + cardNumber );
    boolean result = ((int)(Math.random() *100)) % 2 == 0?true:false;
    return result;
    Code from ALBPM Object method
    creditRatingResult as Bool
    getCreditRating CheckCreditService
    using cardNumber = "1234-5567-4667-4566"
    returning creditRatingResult = creditRatingResult
    logMessage "Result is: " + creditRatingResult
    What I suggest for you problem is:
    1. Check the server on which you have deployed the WS. Does it require any sort of authentication prior to connecting to the WS
    2. It seems you are using Java style in ALBPM. Try switching to PBL. I don't know how it makes a difference, but sometimes it helps
    Thanks and Regards
    Vivek Nandey
    BEA Certified Developer for Integration Solutions
    [email protected]

Maybe you are looking for