Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Start a WF programmatically?

Status
Not open for further replies.

amnovice2

Programmer
Aug 11, 2003
13
US
hi,

I have a predefined map which has a form attached.
i want to programmatically populate the form and initiate the workflow.

I could load the map by using the WAPi functions. But how do i populate the form fields with my data before actually initiating the workflow?

regards,
 
The workflow API has setter methods also.By manipulating the subtype feature as 4 you can gain access to your form template methods.
Code:
the API is UpdateTaskWork,UpdateWorkPackage.[code]A small java example in retreiving the work package was published by me some time back at [URL unfurl="true"]http://www.greggriffiths.org/livelink/lapi/wfattachments/[/URL]

There ia also a treatise on Extending workflow functionality at the same site.

See if you can modify the source code and pls let the forum members how you overcame the problem.



[i]We don't know a millionth of one percent about anything. 
	- Thomas A. Edison[/i]
 
Hi Appnair,
I actually want to initiate a workflow automatically using Oscript and not LAPI. When the user clicks on a custom node command, i want to initiate a predefined workflow whose id is say '1234'. But before initating the workflow, I want to fill the web form attached to this wokflow with some existing data.
How can i do this?
Can u please post here a code snippet?

regards,
 
Where is this data coming from.The webforms examples have a database lookup example that retreives the login info from KUAF whan you type the name.Is this something that you are trying to do , providing a lookup from a database table to reduce typing?
 
Hi,
I have a custom node type.
I have one workflow with web form attached to it. When this wf ends, an instance of the above custom node is created. One category(predefined) is applied to this node and values from the form are used to fill up values of the attributes of this category.

There is one custom command defined for this node type. So the functions menu of this node shows this command say "Add version". On clicking this, i want to initiate the wf(disscussed above) and send it to next performer. But before initiation, this time i want to fill up the form with the current attribute values. after completion of this wf i want to update the node according to new values in the form which might have been changed by the performers.

I am trying to initiate this wf in the _SubClassExecute method of this node command. How do i access the web form and populate it with existing attribute values?

regards,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top