I am having while loop inside while loop i am having invoke Activity ( another workflow)
In that invoke workflow i am having if condition -
My doubt is if condition true means it’s going then block -
In that then block i need a CONTINUE Activity - no need to go for further activities , but i am getting error while using continue activity
any other activities there for skip the loop any one help pls
You can use Continue only at same level (same workflow) as the While loop is defined.
You can NOT use Continue from invoked workflow to “continue” a While loop defined in “invoking” (outer) workflow.
You will need to use some different technique to exit from invoked workflow.
Is the Invoke Workflow the only activity in While loop?
Just an example inside invoke to increase count you can use this
Select Case Weekday(startDate,VBMonday)
Case 1
If row(“Pattern”).ToString.Contains(“1”) Then
in_Count=in_Count+1
End If
Case 2
If row(“Pattern”).ToString.Contains(“2”) Then
in_Count=in_Count+1
End If
Case 3
If row(“Pattern”).ToString.Contains(“6”) Then
in_Count=in_Count+1
End If
Case 4
If row(“Pattern”).ToString.Contains(“7”) Then
in_Count=in_Count+1
End If
End Select
@BHUVAN
Yes you can send the count out of invoke so the count will be increased you are going to increase the count inside the invoke right then its fine.
To increase counter, that is defined at outer while loop level, in the invoked workflow you have to pass the counter variable as in/out argument to the invoked workflow.