Using multiple Task forms in a single workflow

Published 18 September 07 12:59 AM | Tom Wardill

In the creation of a workflow more complex than the standard "hello world" equivalent, it will eventually be necessary to create more than one task, and to use different InfoPath forms for each of them.

This can be done quite easily by using this syntax in the workflow.xml:

<Task0_FormURN>FORMURN 1</Task0_FormURN>
<Task1_FormURN>FORMURN 2</Task1_FormURN>

Then, in the code for the CreateTask workflow object use:

task1.TaskProperties.TaskType = 0
task2.TaskProperties.TaskType = 1

Essentially, the urn designators match the task type, the 0 urn is the 0 task type, etc.

N.B. This doesn't work for aspx forms, they use an entirely different method of form description, one I have not investigated yet.

Filed under: ,

Comments

# Raghav said on February 20, 2008 10:24 AM:

What's alternative to work with multiple Task form with aspx

Leave a Comment

(required) 
(required) 
(optional)
(required)