public function saveAction($jobId, $taskName)
 {
     $TaskEntity = TaskStorage::getNewEntity($taskName);
     $Request = new Request();
     $Request->processing($TaskEntity);
     TaskStorage::save($TaskEntity->id, $TaskEntity);
     $JobEntity = JobStorage::getById($jobId);
     $JobEntity->tasks[] = $TaskEntity->id;
     JobStorage::save($jobId, $JobEntity);
     Router::redirect('/task_get/' . $TaskEntity->id);
 }
Beispiel #2
0
 public function buildAction($id)
 {
     $JobEntity = JobStorage::getById($id);
     $script = Generator::build($JobEntity);
     ScriptStorage::save($id, $script);
 }