FORUMS


Discussion about Intalio|BPP Community Edition.


Back to Workflow (0 viewing) 
Go to bottom Favoured: 0
TOPIC: Re:Simple copy problem - but with namespaces
Nov 14, 2008 10:49 pm
34 posts
Junior Boarder

Karma: 0  
I have an initForm that I have set up to allow the user to create multiple rows of data. I start a process from this init form and thisEventStartMessageRequest contains....
<input xmlns:wsi-xf="http://www.intalio.com/BPMS/wsi/xforms" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" xmlns:ns0="http://example.com/initForm/xform" xmlns:wsi-wsdl="http://www.intalio.com/BPMS/wsi/wsdl" xmlns="http://example.com/initForm/xform">
<acceptanceEnabled />
<Performer_Group />
<performanceEnabled />
<negotiationEnabled>Yes</negotiationEnabled>
<Subject>ns-3</Subject>
<appdatas>
<appdata>
<appName>Foo</appName>
<appValue>17</appValue>
</appdata>
</appdatas>
</input>

Using the mapper, I copy the <appdatas> element to a variable called output. The result I get in output is:
<output xmlns="http://example.com/takeAct/xform" formUrl="" participantToken="" taskId="" user="">
<takeAct:Acts xmlns:takeAct="http://example.com/takeAct/xform" />
<takeAct:Subject xmlns:takeAct="http://example.com/takeAct/xform" />
<appdatas xmlns:takeAct="http://example.com/takeAct/xform">
<appdata xmlns="http://example.com/initForm/xform">
<appName>Foo</appName>
<appValue>17</appValue>
</appdata>
</appdatas>
</output>

At first glance, it seems ok, but looking carefully we see that the appdata (singular) element has the wrong namespace - which causes things to break in my next form. I would like it to have the same namespace as all the other elements (http://example.com/takeAct/xform) rather than http://example.com/initForm/xform.

Any thoughts? I tried making modifications in my initForm, but they weren't having an effect and it was a little confusing to me so I figured rather than make a big mess of my project, I would ask folks smarter than I.

Thanks in advance,
RB
 
  The administrator has disabled public write access.
Nov 19, 2008 10:58 pm
Antoine (Admin)
2755 posts
Admin

Karma: 58  
I think I see the problem, you defined the same structure in two different schemas. You were constrained to that because xforms need the xsd next to them.

1. Use only the schema next to the xform
2. You can also try changing the namespace of the form. Click on the canvas and scroll down in the properties, then set it to the same as your other schema.
3. If nothing works, I'd recommend to use XSLT, it might work for this.


Thanks,

Antoine
 
 
Intalio, The Enterprise Cloud Company
www.intalio.com
  The administrator has disabled public write access.
Nov 20, 2008 9:04 pm
34 posts
Junior Boarder

Karma: 0  
Thanks for the suggestions - and sorry for the late response (for some reason I didn't get an email notification) - in fact, I only saw it because I was coming back here to report that I indeed used XSLT to do the translation. I found that if I removed all namespace information from thisEventStartMessageRequest and copied the "namespace-less" version of appdatas to my variable named output (which has the namespace that I want) everything worked fine.

Two things that made debugging a little challenging were:

1. My initForm was not getting updated in the bpm file - What is the right way to "update" the bpm file after modifying an xform file. I have been dragging the xform file to an empty place on the map, dropping it there, choosing one of the options (e.g. Create init...) and then deleting the activity that is created. Though this usually works, I am thinking there is a better way.

2. My system was becoming painfully slow - especially loading the instance page in the console (which could easily take 5 minutes to load). I figured that it was due to the fact that I had over 500 instances (lots of trial and error :) ). I started cleaning that up today and have about 60 instances that are stuck in the "In Progress" state. When I select an instance choose "Suspend", I get a "genError.htm" page due to:
12:00:56,041 ERROR [log] Nested in javax.servlet.ServletException: javax.servlet.jsp.JspException: Error reading 'format
tedMessage' on type org.intalio.tempo.web.controller.ActionError:
javax.el.ELException: Error reading 'formattedMessage' on type org.intalio.tempo.web.controller.ActionError
at javax.el.BeanELResolver.getValue(BeanELResolver.java:66)
at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
at org.apache.el.parser.AstValue.getValue(AstValue.java:97)
at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)

However I am guessing that the reason I can't suspend these instances (and then terminate/delete them) is that there definitions have already been undeployed (those were building up also). Is there any way to delete instances once the defintions have been undeployed?

Thanks so much,
RB
 
  The administrator has disabled public write access.
Go to top Post Reply
get the latest posts directly to your desktop

Top Posters

Last 30 days

  • yodjeu.ntemde.leopold.camille (21)
  • Konstantin.Melnik (8)
  • himar.rodriguez (8)
  • amrrao1975 (6)
  • rakesh.db (6)
  • jaime.penafiel (5)
  • andre.van.der.ark (5)
  • andreas.boehm (5)
  • blue.moon (5)
  • estebanf (4)

All time

  • Antoine (2755)
  • Shivanand (1194)
  • cshekhar (933)
  • psq (797)
  • metabyte (415)
  • jag (393)
  • dfrench (367)
  • arnaud (329)
  • jalateras (325)
  • talita.pezzi (261)

Show last 4 hrs - 12 hrs - 24 hrs

Copyright © Intalio, 1999-2010.