What should you do to ensure that the CaDisplayDets activity executes 10 times?

You create a workflow application by using Microsoft .NET Framework 3.5. The application has a workflow that contains a field named Counter of type Int32. The Counter field is initialized to 0.

The workflow also has a ConditionalActivityGroup activity named CagConditions. The CagConditions activity has a CodeActivity activity named CaDisplayDets. The ExecuteCode handler for the CaDisplayDets activity is defined in the following manner.

private void CaDisplayDets_ExecuteCode(
object sender, EventArgs e)
{
Counter += 1;
Console.WriteLine("EXECUTE" + Counter.String());
}

You need to ensure that the CaDisplayDets activity executes 10 times.

What should you do?

You create a workflow application by using Microsoft .NET Framework 3.5. The application has a workflow that contains a field named Counter of type Int32. The Counter field is initialized to 0.

The workflow also has a ConditionalActivityGroup activity named CagConditions. The CagConditions activity has a CodeActivity activity named CaDisplayDets. The ExecuteCode handler for the CaDisplayDets activity is defined in the following manner.

private void CaDisplayDets_ExecuteCode(
object sender, EventArgs e)
{
Counter += 1;
Console.WriteLine(“EXECUTE” + Counter.String());
}

You need to ensure that the CaDisplayDets activity executes 10 times.

What should you do?

A.
Create a declarative rule condition for the WhenCondition property of the CaDisplayDets activity. Set the expression to “Counter < 10”.

B.
Create a declarative rule condition for the WhenCondition property of the CaDisplayDets activity. Set the expression to “Counter > 10”.

C.
Create a declarative rule condition for the UntilCondition property of the CagConditions activity. Set the expression to “Counter < 10”.

D.
Create a declarative rule condition for the UntilCondition property of the CagConditions activity. Set the expression to “Counter > 10”



Leave a Reply 0

Your email address will not be published. Required fields are marked *