Ejemplo n.º 1
0
        public SwiftProcess(string method, JobBase job, Process process)
        {
            _method = method;
            switch (_method)
            {
            case "SplitJob":
                _timeout = job.JobSplitTimeout;
                break;

            case "CollectTaskResult":
                _timeout = job.TaskResultCollectTimeout;
                break;

            default:
                _timeout = 0;
                break;
            }

            _job             = job;
            _businessId      = job.BusinessId;
            _eventActions    = null;
            _process         = process;
            _jobTask.Process = this;
            _filePath        = SwiftConfiguration.GetSwiftProcessPath(_method, _businessId);
            _job.RelateProcess(method, this);
        }
Ejemplo n.º 2
0
 public SwiftProcess(string method, JobTask task, Process process)
 {
     _method          = method;
     _jobTask         = task;
     _timeout         = _jobTask.ExecuteTimeout;
     _job             = task.Job;
     _businessId      = task.BusinessId;
     _eventActions    = null;
     _process         = process;
     _jobTask.Process = this;
     _filePath        = SwiftConfiguration.GetSwiftProcessPath(_method, _businessId);
 }