Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
updatetask
1111111
I went to update some older file into destination workarea with updatetask How can i overwrite the files in destination workarea directly?
Find more posts tagged with
Comments
Jeremy
You can use the overwrite="t" flag.
See the docs for more details:
Overwrite Specifies whether or not to overwrite the destination area version of
conflicting files (can be Yes or No).
Hope that helps.
Jeremy
1111111
thanks. But i has already set this attribute. like this
<updatetask name="update"
owner="__TAG__('iw_user');"
description="__TAG__('iw_desc');"
Overwrite="t"
start="f"
>
But i still have to resolve the confilct manual. How can i update the file to destination workarea and sumbit it into staging(even the newly version is exist in destination workarea and staging )
Jeremy
Have you set the override to "t" for the submit task as well? And also set the skipconflicts="t" if you really want to just skip conflicts here.
I think someone else can chime in here with more first hand experience with the pro's and con's of the different options here.
Hope this is what you were looking for.
Jeremy
1111111
Yes , like this :
<submittask name="Submit"
owner="__TAG__('iw_user');"
Override = "t"
SkipConflicts = "t"
description="Please complete this task">
But before submittask i must resolve the conflict.
james1
Note that all XML, in particular the job specification language, is case-sensitive. You need to make "Overwrite" lower-case.
-- James
--
James H Koh
Interwoven Engineering
1111111
Hi James:
I changed the wft as you said,But confilcts still occur.
<usertask name="Edit"
owner="__TAG__('iw_user');"
description="__TAG__('iw_desc');"
readonly = "f"
start="f"
>
<areavpath v="__TAG__('iw_workarea');"/>
<successors>
<successorset description = "cancel">
<succ v = "EndTask"/>
</successorset>
<successorset description = "genpage">
<succ v = "Genpage"/>
</successorset>
</successors>
</usertask>
<externaltask name="Genpage"
owner="__TAG__('iw_user');"
description="GenPAGE"
start="t"
>
<areavpath v="__TAG__('iw_workarea');"/>
<successors>
<successorset>
<succ v="update"/>
</successorset>
</successors>
<command v="/data/interwoven/iw-home/iw-perl/bin/iwperl /data/interwoven/iw-home/custom/bin/generate.ipl "/>
__INSERT__(submit_files_xml());
</externaltask>
<updatetask name="update"
owner="__TAG__('iw_user');"
description="__TAG__('iw_desc');"
overwrite="t"
start="f"
>
__INSERT__(get_tagworkarea());
<successorset description="review">
<succ v="Review"/>
</successorset>
<srcareavpath v="__TAG__('iw_workarea');"/>
</updatetask>
<!-- ================== review ================ -->
<usertask name="Review"
owner="__TAG__('reviewer');"
description="__TAG__('iw_desc');"
readonly = "f"
start="f"
>
__INSERT__(get_tagworkarea());
<successors>
<successorset description = "back">
<succ v = "Edit"/>
</successorset>
<successorset description = "sumit">
<succ v = "Submit"/>
</successorset>
</successors>
</usertask>
<!-- =========================== Submit ============================= -->
<submittask name="Submit"
owner="__TAG__('iw_user');"
override = "t"
skipconflicts = "t"
description="Please complete this task">
__INSERT__(get_tagworkarea());
<successorset description="submit">
<succ v="dataDeploy"/>
</successorset>
</submittask>
james1
The attribute for updatetask's is "overwritemod", not "overwrite".
-- James
--
James H Koh
Interwoven Engineering
1111111
HI James, It really work. thanks