sorry totally offbase with this answer. but if you read your previous thread it was answered.
========================= BJ Freeman http://bjfreeman.elance.com Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93> Specialtymarket.com <http://www.specialtymarket.com/> Systems Integrator-- Glad to Assist Chat Y! messenger: bjfr33man Linkedin <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro> BJ Freeman sent the following on 3/30/2010 9:19 AM: > not sure what you mean by phases. > if you mean the folders with basic files to work from then you can use > ant create-project > it will create all the folders and copy template files to them for you > to start to work. > > ========================= > BJ Freeman > http://bjfreeman.elance.com > Strategic Power Office with Supplier Automation > <http://www.businessesnetwork.com/automation/viewforum.php?f=93> > Specialtymarket.com <http://www.specialtymarket.com/> > > Systems Integrator-- Glad to Assist > > Chat Y! messenger: bjfr33man > Linkedin > <http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro> > > > tiffanymlk sent the following on 3/30/2010 4:26 AM: >> Hi, >> >> I would like to programmatically add the same phases whenever a project is >> created. Has anyone every tried to do such a thing? >> >> >> I inserted the following code in the 'createProject' method of the >> ProjectServices.xml files. >> <if-empty field="parameters.templateId"> >> <set field="createProjectPhase.workEffortName" value="Phase1"/> >> <set field="createProjectPhase.workEffortParentId" >> from-field="parameters.projectId"/> >> <call-simple-method method-name="createProjectPhase"/> >> </if-empty> >> >> >> And this is the 'createProjectPhase' method: >> <simple-method method-name="createProjectPhase" short-description="Create a >> project phase and optionally assign"> >> <!-- create task --> >> <if-empty field="parameters.statusId"> >> <set field="parameters.statusId" value="PTS_CREATED"/> >> </if-empty> >> <call-simple-method method-name="createWorkEffort" >> xml-resource="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml"/> >> >> <set field="parameters.workEffortId" >> from-field="newEntity.workEffortId"/> >> <!-- optionally assign to party --> >> <if-not-empty field="parameters.partyId"> >> <call-simple-method method-name="assignPartyToWorkEffort" >> xml-resource="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml"/> >> </if-not-empty> >> <!-- optionally enter estimated time and required skill --> >> <if-not-empty field="parameters.estimatedHours"> >> <set field="parameters.estimatedDuration" >> from-field="parameters.estimatedHours" type="Double"/> >> <if-empty field="parameters.skillTypeId"> >> <set field="parameters.skillTypeId" value="_NA_"/> >> </if-empty> >> <call-simple-method method-name="createWorkEffortSkillStandard" >> xml-resource="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml"/> >> >> </if-not-empty> >> </simple-method> >> >> Any help would be much appreciated, thanks >> >> steph. > > >
