BN089-BS开发框架MVC4版/source20131023/Zephyr.Net/Zephyr.WorkFlow/Excute/TaskInstance.cs
(开头部分) 26KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Collections;
using System.Data;
namespace Zephyr.WorkFlow
{
public class TaskInstance
{
private ProcessInstance _processInstance;
private Task _task;
private wf_taskInstance _model;
internal TaskInstance(ProcessInstance processInstance, Task task, wf_taskInstance model = null)
{
_processInstance = processInstance;
_task = task;
if (_model == null)
{
var bpmContext = processInstance.getBpmContext();
_model = new wf_taskInstance();
_model.ProcessInstanceId = processInstance.getProcessInstanceModel().Id;
_model.Id = bpmContext.save(this);
}
}
public Token createToken()
{
return new Token(this, null);
}
public Token loadToken(wf_token model)
{
return new Token(this, model);
}
public TaskInstance start()
{
//if (OnEnter != null) OnEnter();
//_startTime = DateTime.Now;
return this;
}
public TaskInstance enterNode()
{
//if (OnEnter != null) OnEnter(new TaskEventArgs(this));
return this;
}
public TaskInstance end()
{
//if (OnLeave != null) OnLeave();
//_endTime = DateTime.Now;
return this;
}
public TaskInstance save()
后面还有 682 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。