Use the API to submit a task.
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF // ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY // IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR // PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT. using PNMsoft.Sequence.Data; using PNMsoft.Sequence.Forms.Activities; using PNMsoft.Sequence.Linq; using PNMsoft.Sequence.Messaging; namespace SequenceEx.Tasks.Samples { public class ExecuteTaskExample { void SubmitData(TaskInstance taskInstance) { TaskExecutor taskExecutor = new TaskExecutor(taskInstance); using (DataContext ctx = taskExecutor.CreateDataContext()) { IDataTable tbl = ctx.GetDataTable("UACT1"); IDataRow row = tbl.CreateRow(); row.SetField("Field1", "Field1 Value"); tbl.InsertOnSubmit(row); bool forceCloseTask = true; bool forceCloseActivity = true; ctx.SubmitChanges(forceCloseTask, forceCloseActivity); } } } }