Package de.scoopgmbh.copper

Examples of de.scoopgmbh.copper.WorkflowDescription.alias()


    for (Class<?> wfClass : map.values()) {
      wfMapLatest.put(wfClass.getName(), wfClass); // workflow is always accessible by its name
     
      WorkflowDescription wfDesc = wfClass.getAnnotation(WorkflowDescription.class);
      if (wfDesc != null) {
        final String alias = wfDesc.alias();
        final WorkflowVersion version = new WorkflowVersion(wfDesc.majorVersion(), wfDesc.minorVersion(), wfDesc.patchLevelVersion());
        wfMapVersioned.put(createAliasName(alias, version), wfClass);
       
        WorkflowVersion existingLatest = latest.get(alias);
        if (existingLatest == null || version.isLargerThan(existingLatest)) {
View Full Code Here


      WorkflowClassInfo wfi = new WorkflowClassInfo();
      wfi.setClassname(wfClass.getName());
      wfi.setSourceCode(localVolatileState.javaSources.get(wfClass.getName()));
      WorkflowDescription wfDesc = wfClass.getAnnotation(WorkflowDescription.class);
      if (wfDesc != null) {
        wfi.setAlias(wfDesc.alias());
        wfi.setMajorVersion(wfDesc.majorVersion());
        wfi.setMinorVersion(wfDesc.minorVersion());
        wfi.setPatchLevel(wfDesc.patchLevelVersion());
      }
      resultList.add(wfi);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.