Search in sources :

Example 1 with ProcessDefinitionV2

use of com.walmartlabs.concord.process.loader.v2.ProcessDefinitionV2 in project concord by walmartlabs.

the class ProjectLoader method toResult.

private static Result toResult(com.walmartlabs.concord.runtime.v2.ProjectLoaderV2.Result r) {
    List<Snapshot> snapshots = r.getSnapshots();
    ProcessDefinition pd = new ProcessDefinitionV2(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) ProcessDefinitionV2(com.walmartlabs.concord.process.loader.v2.ProcessDefinitionV2)

Aggregations

ProcessDefinition (com.walmartlabs.concord.process.loader.model.ProcessDefinition)1 ProcessDefinitionV2 (com.walmartlabs.concord.process.loader.v2.ProcessDefinitionV2)1 Snapshot (com.walmartlabs.concord.repository.Snapshot)1