$workflow_id, "form_type" => "ajax" ); $obj = new form_task_template($context); $obj->set(); $results = $obj->new_submit(); $json = json_encode($results); echo $json; ?>