Reevaluate skins
If the data used to evaluate rules were incorrect, you can re-evaluate a skin to know which skin was chosen, and then move the job onto the correct skin by calling the relevant .NET API through .NET activity.
- Update job variable values.
- Open the map with the relevant .NET activity.
- Select the activity.
- On the Extended Properties page of the activity, click the Configuration tab.
- In the Assembly File Path box, consume the TotalAgility.Sdk.dll assembly.
- The Load Assembly Using Full Name option automatically turns Yes when the assembly is signed. (Default- No).
- On the Class list, select TotalAgility .Sdk.JobService.
-
On the
Method list, select
ReEvaluateSkin.
A list of parameters for this method appears.
-
Map the variables with the following parameters of the
ReEvaluateSkin method.
Parameter
Variable Type
Sessionid
String
ID
String
UpdateVariablevalues under skinOptions
Boolean
UpdateLiveActivities under skinOptions.
If the value of this variable is set to True, the existing activity properties are updated with that of the relevant skin.Boolean
If you set the Boolean-type variable values and live activities as initialization variables, you can specify variable values at runtime. - Click Save.
-
Create a job on this map and complete the job.
The job is created on the relevant skin.Because the values of the rule variables in the map are preset to match a skin rule, TotalAgility automatically creates a job on the relevant skin, and overwrites the existing job. However, if any activities were taken and completed, the job continues within the context of the selected skin.