📄 jobimpl.cs
字号:
using System;
using NetBpm.Workflow.Definition;
using NetBpm.Workflow.Delegation.Impl;
using NetBpm.Workflow.Execution;
namespace NetBpm.Workflow.Scheduler.Impl
{
public class JobImpl
{
private Int64 _id;
private IProcessDefinition _processDefinition = null;
private IFlow _context = null;
private DateTime _date = DateTime.MinValue;
// private String _taskClassName = null;
// private String _configuration = null;
private String _userId = null;
private String _pwd = null;
private String _reference = null;
private DelegationImpl _actionDelegation = null;
public Int64 Id
{
get { return _id; }
set { this._id = value; }
}
public IProcessDefinition ProcessDefinition
{
get { return _processDefinition; }
set { this._processDefinition = value; }
}
public IFlow Context
{
get { return this._context; }
set { this._context = value; }
}
public DateTime Date
{
get { return _date; }
set { this._date = value; }
}
public String UserId
{
get { return _userId; }
set { this._userId = value; }
}
public String Pwd
{
get { return _pwd; }
set { this._pwd = value; }
}
public String Reference
{
get { return _reference; }
set { this._reference = value; }
}
public DelegationImpl ActionDelegation
{
get { return this._actionDelegation; }
set { this._actionDelegation = value; }
}
public JobImpl()
{
}
public JobImpl(Job job, String reference)
{
_processDefinition = job.ProcessDefinition;
_context = job.Context;
_date = job.Date;
_userId = job.UserId;
_pwd = job.Pwd;
this._reference = reference;
_actionDelegation = new DelegationImpl();
_actionDelegation.ProcessDefinition = job.ProcessDefinition;
_actionDelegation.ClassName = job.TaskClassName;
_actionDelegation.Configuration = job.Configuration;
}
public override String ToString()
{
return "activation[" + _id + "|" + _actionDelegation.ClassName + "|" + _date.ToString("r") + "]";
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -