I'm actually referring to the phases that can be created in a project (in the
projectmgr module). As part of an assignment, I need to customize this
module in order to automatically create a set of phases whenever a project
is created. For instance, when a user creates a project in the projectmsg
module, the following phases will be automatically created:
plan phase
development phase
deployment phase.

This means that all the projects that will be created, will have the above
phases. in other words, I sort of want to hard code these phases.

I know that there are a 'createProject' method and a 'createProjectPhase'
method in the ProjectServices.xml file, so I thought of calling the
'createProjectPhase' method from the 'createProject' method. So I wrote the
following code in the 'createProject' method:

<if-empty field="parameters.templateId">
         <set field="createProjectPhase.workEffortName" value="Estimation"/>
            <set field="createProjectPhase.workEffortParentId"
from-field="parameters.projectId"/>
         <call-simple-method method-name="createProjectPhase"/>

But it didn't work. So I thought maybe someone could help me, cos the truth
is I'm also new to XML/

Thanks a lot for your interest, I really appreciate it.
Steph.


-- 
View this message in context: 
http://n4.nabble.com/Programmatically-create-phases-tp1745069p1745485.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Reply via email to