/// <summary>
        /// Builds the activity state object to pass to the activity.
        /// </summary>
        /// <param name="context">Workflow decision context supplied by SimpleWorkflowFramework.NET.</param>
        /// <returns>The activity state.</returns>
        protected string BuildActivityState(WorkflowDecisionContext context)
        {
            var activityState = new ActivityState {
                StartingInput  = context.StartingInput,
                PreviousResult = context.Result
            };

            return(JsonConvert.SerializeObject(activityState));
        }
        /// <summary>
        /// Builds the activity state object to pass to the activity.
        /// </summary>
        /// <param name="context">Workflow decision context supplied by SimpleWorkflowFramework.NET.</param>
        /// <returns>The activity state.</returns>
        protected string BuildActivityState(WorkflowDecisionContext context)
        {
            var activityState = new ActivityState {
                StartingInput = context.StartingInput,
                PreviousResult = context.Result
            };

            return JsonConvert.SerializeObject(activityState);
        }