Persist

The following sample code for the Persist action persists the user variable named "UserVar":

String variable1Value = “Hello”;
Sybase.UnwiredPlatform.Windows.Action.Action persistAction = Sybase.UnwiredPlatform.Windows.Action.ActionFactory.CreatePersistAction(
       Sybase.UnwiredPlatform.Windows.Variable.VariableType.User,"UserVar",variable1Value);
 persistAction.Execute();