AnsweredAssumed Answered

Tasks changed with xog are changed back

Question asked by BarakBes on Jul 24, 2015
Latest reply on Aug 5, 2015 by Dave_3.0

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>

Outcomes