Search in sources :

Example 1 with ProcessDefinitionV1

use of com.walmartlabs.concord.process.loader.v1.ProcessDefinitionV1 in project concord by walmartlabs.

the class ProjectLoader method toResult.

private static Result toResult(com.walmartlabs.concord.project.ProjectLoader.Result r) {
    List<Snapshot> snapshots = r.getSnapshots();
    ProcessDefinition pd = new ProcessDefinitionV1(r.getProjectDefinition());
    return new Result() {

        @Override
        public List<Snapshot> snapshots() {
            return snapshots;
        }

        @Override
        public ProcessDefinition projectDefinition() {
            return pd;
        }
    };
}
Also used : Snapshot(com.walmartlabs.concord.repository.Snapshot) ProcessDefinition(com.walmartlabs.concord.process.loader.model.ProcessDefinition) ProcessDefinitionV1(com.walmartlabs.concord.process.loader.v1.ProcessDefinitionV1)

Aggregations

ProcessDefinition (com.walmartlabs.concord.process.loader.model.ProcessDefinition)1 ProcessDefinitionV1 (com.walmartlabs.concord.process.loader.v1.ProcessDefinitionV1)1 Snapshot (com.walmartlabs.concord.repository.Snapshot)1