Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
Initiate Workflow From Outside LiveLink
CALBA01Admin_(Delete)_3114104
How do you initiate a workflow from outside of LiveLink?I have a form I create on a web page outside of LiveLink. The form was originally created inside of LiveLink, but I had to make a copy of the form on a web page outside of LiveLink for our customers to access it. The web page is setup to send the form information to the form tables I created (using LiveLink) in the LiveLink database.I also have a workflow I created (using LiveLink) that is used to process the form information. It appears that all the workflow information resides in tables that start with the letter "W".I need to know what information I need to put in what tables and table fields to start the workflow.Any help will be greatly apprecieated.
Find more posts tagged with
Comments
Donna Nalls
Hi Robert -Assuming you have the Livelink SDK, you can have your form submit to a RequestHandler, which does not require a Livelink login (not LLRequestHandler which does require login). (you will orphan from WebDSP not WebLL).Inside of your request handler, establish a temporary prgCtx which gives you an Admin login, initiate your workflow, delete the temporary prgCtx and redirect your users back to the original website or other confirmation page.A couple of tips:1) store the workflow template id in your module ini file and do a look-up before the initiation.2) use the appropriate workflow methods to initiate the wflow - don't try to jam data into these tables. here are some snippets to get you started:// retrieve the wflow template nodeDapiNode wfNode = DAPI.GetNodeById(prgCtx.DSession().fSession, DAPI.BY_DATAID, )// create a temporary wflow mapDynamic wfInfo = $WFMain.WFMapPkg.SetMapTempStorage(prgCtx, wfNode, 0)// init the wflowDynamic initMap = $WFMain.WAPIPkg.StartWF(prgCtx, wfinfo.mapinfo, '')3) DON'T FORGET to delete the temporary prgCtx or the users will continue to have a login to Livelink. ;o(4) Let me know if you need some addl code samples.Hope this helps.Donna NallsWisteria ITdnalls@wisteria-it.com
Rolf_Poser_(sbsuser06_-_(deleted))
Robert:Donna has given you one way - I've always done the same as she suggests except that I used LAPI(Java) to actually make the calls.Another more interesting option to consider would be to look at the "Remote Initiation" capability that is present in the latest worfklow interchange module (v1.1.0) which allows you to start a workflow by sending the relevant XML data to a URL (using http of course). I haven't tried remote initiation, but by the looks of the new documentation you should be able to set most fields and workflow title and so forth. The only draw-back is that one can't add attachments at the same time - something for which the other methods allow better possibilities for programmatic intervention.Regards,Rolf.
x-unileveruser11_-_(deleted)
On previous projects I've been able to amend the URL elements of the ll_func_values attribute to allow me to host the form outside our Livelink instance and then initiate a workflow within it. In some cases I've hardcoded in a login - for example for a 'I'd like a login' form - and in others I've just relied on the LL Login screen that appears.