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)
workflow from cgi
sara
I need to start a workflow from a cgi script of a custom menu item.
the workflow created by
$wf = $wfsystem->CreateWorkflow($wfspec);
does is not valid.
it returns the following error message:
You must be a master to run iwjobc.
is it possible to launch a workflow from a custom menu item activated by an author?
Find more posts tagged with
Comments
Adam Stoller
(1) This is not supported within the product, at least not currently.
(2) If you're on Unix, you could have the CGI script be setuid to a Master user - so that the job would actually be instantiated by a master even though it is being invoked initially by someone else - or you could make iwjobc setuid root. In either case it is a security issue for you to take up with your IT deparment (most won't be particularly happy about the idea).
(3) I'm not sure how you would achieve this on Windows.
It is *possible* (no guarantees) that a future version of the product may relax this requirement - but until then, any attempt to circumvent the restrictions of the product are just that - circumventions - and *may* be viewed as a violation of the support contract and/or licensing.
Having said all that - you might find some "solutions" by searching through the various forums here, as this topic comes up periodically.
--fish
(Interwoven Senior Technical Consultant)
james1
Your best bet is probably to write a workflow template (WFT) that models the workflow you want, and then, from your Perl CGI program, make an HTTP call to /iw-bin/iwwft_instantiator.cgi with appropriate arguments, to invoke your WFT, supplying all necessary tag info parameters.
You can search around the forums here to find out what arguments you need and examples of people doing this.
Doing it through an HTTP call makes it run NOT as your current user, and it should instantiate just fine.
-- James
--
James H Koh
Interwoven Engineering