You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm using a foreach condition to iterate a collection by a certain step (LivOperativo1_RicOfferte). For each iteration I want to add the current element of iteration (1,2,3 or 4) in the 'prompt' variable of the UserTask create. It's possible?
Under my test code:
public void Build(IWorkflowBuilder builder)
{
builder
.StartWith()
.ForEach(list => new List() { 1,2,3,4})
.Do(then =>
then.StartWith<LivOperativo1_RicOfferte>()
.Input(step => step._processo, data => data)
.Input(step=> step.Item, (list, context) => context.Item)
.UserTask( "Task number:" + "[1] or [2] or [3] or [4]" , assigner: data => "USER/User1")
.WithOption("YES", "Complete").Do(then2 => then2
.StartWith(context => Console.WriteLine("Task Complete" + Environment.NewLine)))
)
.Then();
}
Thanks
Massimo
The text was updated successfully, but these errors were encountered:
is there any way by which we can achieve multi user tasks, I tried to create, multiple tasks in the loop, tasks are created, but user remain same, unable to understand, I assign the user.
also I am getting mails for two different user, when I see pending user tasks there are two tasks but all the values are same so it is bit confusing. @danielgerlag need your help
How to generate multiple user tasks in a loop, and the assigner is from foreach item.
`
.ForEach(x=> x.Users)
.Do(x=> x
.StartWith(_=> ExecutionResult.Next() )
.UserTask("approve", d=> context.item)
)
Hi,
I'm using a foreach condition to iterate a collection by a certain step (LivOperativo1_RicOfferte). For each iteration I want to add the current element of iteration (1,2,3 or 4) in the 'prompt' variable of the UserTask create. It's possible?
Under my test code:
public void Build(IWorkflowBuilder builder)
{
builder
.StartWith()
.ForEach(list => new List() { 1,2,3,4})
.Do(then =>
then.StartWith<LivOperativo1_RicOfferte>()
.Input(step => step._processo, data => data)
.Input(step=> step.Item, (list, context) => context.Item)
.UserTask( "Task number:" + "[1] or [2] or [3] or [4]" , assigner: data => "USER/User1")
.WithOption("YES", "Complete").Do(then2 => then2
.StartWith(context => Console.WriteLine("Task Complete" + Environment.NewLine)))
)
.Then();
}
Thanks
Massimo
The text was updated successfully, but these errors were encountered: