Latest Posts


Show last 6 hrs - 24 hrs - 7 days

Forum RSS Feed

Top Posters

Last 30 days

  • Antoine (148)
  • gemor.roj (25)
  • gayatri.chandak (25)
  • metabyte (20)
  • juanjo.hernandez (19)
  • talita.pezzi (14)
  • danielandross (14)
  • liu.zhengyang (14)
  • ashwini.jadhav (13)
  • hellonico (13)

All time

  • Antoine (2265)
  • Shivanand (1194)
  • cshekhar (933)
  • psq (797)
  • metabyte (411)
  • jag (393)
  • dfrench (358)
  • arnaud (328)
  • jalateras (325)
  • venkaiah.k (214)

Show last 4 hrs - 12 hrs - 24 hrs

POLL

We are looking for more information to tailor our training to better meet the needs of our customers. Please indicate all options that apply.

I would like to attend specialized training from Intalio on BPM as it relates to my application area:


I would like to attend specialized training from Intalio on BPM as it relates to my job function:


I would like to attend specialized training from Intalio on BPM as it relates to my industry:

Login

MAIN arrow FORUMS
Re:Simple copy problem - but with namespaces (0 viewing) 
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Simple copy problem - but with namespaces
#16896
richard.berger (User)
Junior Boarder
User Offline Click here to see the profile of this user
Simple copy problem - but with namespaces 7 Months, 2 Weeks ago 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
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#16939
Antoine (Admin)
Admin
User Online Now Click here to see the profile of this user
Re:Simple copy problem - but with namespaces 7 Months, 2 Weeks ago Karma: 32  
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
 
Report to moderator   Logged Logged  
 
Intalio, The Enterprise Cloud Company
www.intalio.com
  The administrator has disabled public write access.
#16947
richard.berger (User)
Junior Boarder
User Offline Click here to see the profile of this user
Re:Simple copy problem - but with namespaces 7 Months, 2 Weeks ago 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
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
get the latest posts directly to your desktop