cancel
Showing results for 
Search instead for 
Did you mean: 

error in Subprocess-0.6.0

dev1
Champ in-the-making
Champ in-the-making
hi,

i created 2 levels of Subproces's one inside other…when i try to save, XML file is not getting generated…
for some reason i am still using 0.6.0 version..i don't know if this error is present in 0.7.0 too…. :?

Steps I followed:-

1) Drag start-end palette.
2)Drag Subprocess.
3)Get inside this SubProcess and again follow steps 1 and 2.
4)Drag start-end palette.
5)Drag a simple Scriptask, and fill the properties as required.
6)After saving all these…no XML is generated  :evil:

Regards,
DEV
7 REPLIES 7

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
i don't know if this error is present in 0.7.0 too…. :?

Then please try, or search the Jira if there has been an issue reported (and fixed or not)  Smiley Wink

dev1
Champ in-the-making
Champ in-the-making
HI,
I am trying to modify the code of 0.6.0 so its important for me to know the exact working of 0.6.0.

tiesebarrell
Champ in-the-making
Champ in-the-making
DEV,

if the BPMN is not generated, there can be two reasons:

1) Your process is not valid. If this is the case, there will be markers in the Problems view for either the main process or the subprocesses. There is a known bug with conflicting ids from processes and subprocesses, which has been fixed for the next release. The issue is here: http://jira.codehaus.org/browse/ACT-627 . This might be the problem, but of course it could also be something entirely different. You can look in trunk for the fix and manually apply this if you need to stick with 0.6.0. I think the fix is in BPMN20ExportMarshaller#createSubProcessXML(). It prefixes the id to avoid conflicts.

2) An exception occurred during marshalling. In that case, there should be a stacktrace in the console where Eclipse is logging (if you started Designer from Eclipse, in the main Eclipse's console, if you started Eclipse with AD standalone, in the log file in the workspace you're using).

dev1
Champ in-the-making
Champ in-the-making
hi Tiese,

Thanks for your humble response, i am a big fan of you patience and enthusiasm towards the Activiti community.

I checked both the option you provided me in  the reply, but i fear i am facing some different type of error,
to be more clear  attaching here an Activiti project(test1.zip) where i am facing the trouble, i tried the same thing with 0.7.0, but the error was same here too….

one more thing, i would love to see IND VS ENG match for the 2011 CWC finals Smiley Happy

Regards,
DEV

tiesebarrell
Champ in-the-making
Champ in-the-making
Hi DEV,

looks like you've found a bug. Even with the fix for the issue I mentioned in 0.8.0, there's still a bug when you have two nested subprocesses. This has to do with the way the filename for the subprocess is calculated.

You'll have to fix this yourself if you're sticking with 0.6.0, so here's how:

Open up the org.activiti.designer.eclipse.util.Util.getSubProcessURI(Diagram, String). The method body should be this instead of what's in there now:

final URI baseURI = diagram.eResource().getURI().trimFileExtension();
final String calculatedExtension = subprocessId.replaceAll("_", ".");
final URI subProcessURI = baseURI.appendFileExtension(calculatedExtension).appendFileExtension(diagram.eResource().getURI().fileExtension());

return subProcessURI;

Debug that method when saving your main process and it should pass back a valid URI for BOTH subprocesses.

totyumengr
Champ in-the-making
Champ in-the-making
Even with the fix for the issue I mentioned in 0.8.0, there's still a bug when you have two nested subprocesses.

Hi Tiese,
Which version will fix it? Is important to me for business process split.

tiesebarrell
Champ in-the-making
Champ in-the-making
totyumengr,

I'm hopeful there will be a re-write of the embedded subprocess in 0.8.0, Tijs Rademakers is working on it at the moment. This will eliminate the problem because your subprocesses will then be embedded in the same file.