Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
calling IWSUBMIT from workflow task
andrew_yeo
here i am trying to excute the CLT "iwsubmit" from workflow-external task...not working...
i used the external task attribute, this is what i wrote:
c:\iw-home\iw-perl\bin\iwperl.exe c:\iw-home\local\bin\whatsnew\HR\PublishIndex.ipl
where "PublishIndex.ipl" contains:-
system("$IWHOME\\bin\\iwsubmit.exe -w -r -u main\\CBASIA_INTRANET\\SG\\WORKAREA\\hr_wa\\HR\\announcements\\index.html `Updates Index`");
"index.html" is the file i want to submit just before the workflow ends...
the whole workflow completes without any errors BUT the file "index.html" wasn't submitted...
tell me about it............
Find more posts tagged with
Comments
Migrateduser
I would suggest using execution backticks rather than system() to run iwsubmit. That way you can capture the output and see what's going on.
Even better would be to break the submitting portion out from your external task and use a submit task. Then you can transition appropriately depending on whether the submit was successful, there was a conflict, &c.
Cheers
Rob Huffstedtler
rob@bagpipe.com
iwovGraduate
Is there a reason why you need to run iwsubmit via external task as opposed to submittask ? I would recommend using submittask.
andrew_yeo
I've attached a pic of my workflow diagram. (a picture speaks a thousand words)
briefly,...after the approval and the submittask, my news-articles would get to the STAGING area. I will then Generate an index.html file containing the list of news-articles I hav in the STAGING (which is what has been approved), this file (index.html) will then be submitted automatically (this is where i need the iwsubmit) within the workflow to the STAGING.
after many many tries, i hav been able to complete the workflow transitions successfully.
any comments and suggestions for improvements...
Migrateduser
How about this?
Move the external task for generating the index to right after the approval task. Generate the file and use $task->AddFiles() to attach it to your workflow, then the submit task will submit it with the other stuff.
That is how I typically handle that sort of scenario.
Cheers
Rob Huffstedtler
rob@bagpipe.com