试行范围确认
原能力
登记适用对象、时间和资源上限,标明哪些变化要重新交由责任人批准。(细化版 p.8–9)
首选项目
Open Policy Agent(Apache-2.0)。 Open Policy Agent
匹配范围
输入约束判定与人工批准记录。
源码
Open Policy Agent · func (pq PreparedEvalQuery) Eval(
v1/rego/rego.go · 608–621 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
func (pq PreparedEvalQuery) Eval(ctx context.Context, options ...EvalOption) (ResultSet, error) {
ectx, finish, err := pq.newEvalContext(ctx, options)
if err != nil {
return nil, err
}
defer finish(ctx)
ectx.compiledQuery = pq.r.compiledQueries[evalQueryType]
return pq.r.eval(ctx, ectx)
}
// PreparedPartialQuery holds the prepared Rego state that has been pre-processed
// for partial evaluations.
- // Copyright 2017 The OPA Authors. All rights reserved.
Flowable · public interface TaskService
modules/flowable-engine/src/main/java/org/flowable/engine/TaskService.java · 46–59 行。 在 GitHub 查看源码 · 许可证与声明
源码片段
public interface TaskService {
/**
* Creates a new task that is not related to any process instance.
*
* The returned task is transient and must be saved with {@link #saveTask(Task)} 'manually'.
*/
Task newTask();
/** create a new task with a user defined task id */
Task newTask(String taskId);
/**
* Create a builder for the task
实现与验收要点
试行对象、费用/时间边界、变更的具名批准。