Clarity

  • 1.  Tasks changed with xog are changed back

    Posted Jul 24, 2015 03:20 AM

    Hi,

     

    I am running a process to change the dates of tasks.

    The last part of the process is as pasted below.

     

    When I run the process, I see that task dates are not changed, BUT when I look at the audit trail I see that task dates did change but then were immidiately chnaged back.

    I put on hold all other processes to make sure that no other process is affecting the result, but still the same result.

     

    Does someone have any explanation? Is it because I don't deal with the assignments (there are assignments on the tasks)? Is it because I don't put constraints?

     

    Thanks,

    Barak

     

    <!--For each task (record in sql_input), change the start date and date-->

    <core:forEach items="${sql_input.rows}" var="task2shift">

    <!-- HANDLE THE CURRENT TASK THAT NEEDS TO BE OPEN UNDER THE CURRENT PROJECT -->

    <gel:parse var="taskxml">

    <!--<Task start="${task2shift.SHIFTED_START}T08:00:00" finish="${task2shift.SHIFTED_FINISH}T17:00:00" internalTaskID="${task2shift.PRID}"> -->

    <Task finish="${task2shift.SHIFTED_FINISH}T17:00:00" key="${task2shift.PRISKEY}" lockedForScheduling="false" milestone="${task2shift.PRISMILESTONE}" name="${task2shift.PRNAME}" outlineLevel="${task2shift.PRWBSLEVEL}" start="${task2shift.SHIFTED_START}T08:00:00" internalTaskID="${task2shift.PRID}" taskID="${task2shift.EXTID}">

    </Task>

    </gel:parse>

     

    <gel:set value="${taskxml}" select="$projxml/NikuDataBus/Projects/Project/Tasks" insert="true"/>

    </core:forEach>

     

    <gel:log level="INFO">

    <gel:expr select="$projxml"/>

    </gel:log>

     

    <!--Activate the write XOG-->

    <soap:invoke endpoint="internal" var="xogresult">

    <soap:message>

    <soapenv:Envelope>

    <soapenv:Header>

    <Auth>

    <xog:SessionID>${sessionID}</xog:SessionID>

    </Auth>

    </soapenv:Header>

    <soapenv:Body>

    <gel:include select="$projxml"/>

    </soapenv:Body>

    </soapenv:Envelope>

    </soap:message>

    </soap:invoke>

     

    <gel:log level="INFO">

    <gel:expr select="$xogresult"/>

    </gel:log>

     

    </core:otherwise>

    </core:choose>

    </core:when>

    <core:otherwise>

    <gel:log level="ERROR">Database connection NOT established</gel:log>

    </core:otherwise>

    </core:choose>

    </core:catch><!-- Catch one Ends -->

     

    <!-- write log if there is any exception caught -->

    <core:if test="${exception != null}">

    <gel:log level="ERROR">ERROR: ${exception.getMessage()}</gel:log>

    </core:if>

    </gel:script>



  • 2.  Re: Tasks changed with xog are changed back

    Posted Jul 24, 2015 03:51 AM

    Well if there are contradictory start/end dates on the assigmnents, this could affect task start/end dates.



  • 3.  Re: Tasks changed with xog are changed back

    Posted Aug 05, 2015 10:57 AM

    Hi David,

     

    I managed to move the tasks after deleting the tasks' ETC with XOG. However, I can't modify the ETC back to the original value.

     

    This is the start of the XOG, incl. the 1st Task:

     

    <?xml version="1.0" encoding="UTF-8"?>

    <NikuDataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/nikuxog_project.xsd">

      <Header action="write" externalSource="NIKU" objectType="project" version="14.2.0.237">

       <args name="overrideAutoNumbering" value="false"/>

      </Header>

      <Projects>

       <Project name="ניהול מסמכים - רשת חברות בנות" projectID="PR00000255">

        <Tasks>

         <Task finish="2018-05-19T17:00:00" internalTaskID="5007298" key="0" lockedForScheduling="false" milestone="0" name="מיפוי סביבה קיימת" outlineLevel="1" start="2018-05-18T08:00:00" taskID="TASK00001092">

          <Assignments>

           <TaskLabor actualWork="0" baselineWork="0" estPattern="3" finish="2018-05-19T17:00:00" lastUpdatedBy="admin" lastUpdatedDate="2015-08-05T17:46:08" remainingWork="18000.0" resourceID="dp26360" start="2018-05-19T17:00:00" unpostedActuals="0">

            <EstCurve>

             <Segment finish="2018-05-19T17:00:00" start="2018-05-19T17:00:00" sum="18000.0"/>

            </EstCurve>

           </TaskLabor>

           <TaskLabor actualWork="0" baselineWork="0" estPattern="3" finish="2018-05-19T17:00:00" lastUpdatedBy="admin" lastUpdatedDate="2015-08-05T17:46:08" remainingWork="18000.0" resourceID="dp25374" start="2018-05-19T17:00:00" unpostedActuals="0">

            <EstCurve>

             <Segment finish="2018-05-19T17:00:00" start="2018-05-19T17:00:00" sum="18000.0"/>

            </EstCurve>

           </TaskLabor>

          </Assignments>

         </Task>

     

    Any idea how to XOG in the ETC?

     

    Regards,

    Barak



  • 4.  Re: Tasks changed with xog are changed back

    Posted Aug 05, 2015 11:08 AM

    Hi - I'm not really sure what problem you are describing ; in my earlier comment I was just trying to say that if your assignment dates (or indeed any booked time) contradict your task dates, then the task dates will be changed to include the relevant date period.

     

    As for your XOG ; you appear to be updating the ETC correctly - that looks like its is trying to set 1.25 days against task TASK00001092 (18000 seconds for 2 resources, assuming a 8hr day)?