cancel
Showing results for 
Search instead for 
Did you mean: 

TestModel error with user Model

jmliege
Champ in-the-making
Champ in-the-making
Hello,

I've installed the very last enterprise version (v2.0 of 27 of february)

I'm trying to test a new model with TestModel, but this one is not working as it can't import the bpm model.


Failed to compile model bpm:businessprocessmodel
URI http://www.alfresco.org/model/user/1.0 cannot be imported as it is not defined (with prefix usr

Where can i found this model ?

thanx.
JM
5 REPLIES 5

didier
Champ in-the-making
Champ in-the-making
Hello,

I exactly meet the same problem. The problem seems to come from line n° 17 in the 'bpmModel.xml' :
        <!– Import User Model Definitions –>
        <import uri="http://www.alfresco.org/model/user/1.0" prefix="usr"/>

I don't find the any 'userModel.xml' file  in Alfresco.war 2.0 package.
I wonder why the bpmModel is now checked with TestModel while it wasn't in the 4.0 release ?

One work-around solution to be able to check customized models is to replace bpmmodel.xml by another model which hasn't error (wcmModel.xml, …) before launching TestModel. Of course, you should not forget to restore the original bpmModel.xml once your tests made.
It's not very a very clean method but it works !

As JM, I'm interested to know where I could find userModel.xml.

Thanks for your answers.
Didier

jmliege
Champ in-the-making
Champ in-the-making
thanks, but i'm currently testing models based on bpm…..
Right now, i need this file…

This file is needed for the new bpm:groupAssignee(s)  aspects.

So Alfresco…help…

JM

davidc
Star Contributor
Star Contributor
The user model can be found at                

org/alfresco/repo/security/authentication/userModel.xml

However, you still won't be able to use TestModel, as bpmModel depends on the above user model (for user / group assignment).  It's a bug.

You can either modify TestModel to load the above user model just after the system model, or wait for me to fix on HEAD.  It's a quick fix, so should be available soon.

bpmModel is included in TestModel to allow validation of custom workflow models.

davidc
Star Contributor
Star Contributor

jmliege
Champ in-the-making
Champ in-the-making
Thank you very much.

Smiley Very Happy