use of org.cristalise.kernel.entity.C2KLocalObject in project kernel by cristal-ise.
the class UserCodeProcess method getErrorJob.
/**
* @param completeJob
* @param errorTrans
* @return
*/
private Job getErrorJob(Job completeJob, int errorTrans) {
Job errorJob = null;
synchronized (jobs) {
for (C2KLocalObject c2kLocalObject : jobs.values()) {
Job thisJob = (Job) c2kLocalObject;
if (thisJob.getItemUUID().equals(completeJob.getItemUUID()) && thisJob.getTransition().getId() == errorTrans) {
Logger.msg(5, "UserCodeProcess.getErrorJob() - job:" + thisJob);
errorJob = thisJob;
}
}
}
return errorJob;
}
use of org.cristalise.kernel.entity.C2KLocalObject in project kernel by cristal-ise.
the class BulkImport method importLifeCycle.
public void importLifeCycle(ItemPath item, Object locker) throws PersistencyException {
String[] contents = importCluster.getClusterContents(item, LIFECYCLE);
for (String c : contents) {
String path = LIFECYCLE + "/" + c;
C2KLocalObject wf = importCluster.get(item, path);
Gateway.getStorage().put(item, wf, locker);
// importCluster.delete(item, path);
}
}
use of org.cristalise.kernel.entity.C2KLocalObject in project kernel by cristal-ise.
the class BulkImport method importJob.
public void importJob(ItemPath item, Object locker) throws PersistencyException {
String[] contents = importCluster.getClusterContents(item, JOB);
for (String c : contents) {
String path = JOB + "/" + c;
C2KLocalObject job = importCluster.get(item, path);
Gateway.getStorage().put(item, job, locker);
// importCluster.delete(item, path);
}
}
use of org.cristalise.kernel.entity.C2KLocalObject in project kernel by cristal-ise.
the class BulkImport method importOutcome.
public void importOutcome(ItemPath item, Object locker) throws PersistencyException {
String[] schemas = importCluster.getClusterContents(item, OUTCOME);
for (String schema : schemas) {
String[] versions = importCluster.getClusterContents(item, OUTCOME + "/" + schema);
for (String version : versions) {
String[] events = importCluster.getClusterContents(item, OUTCOME + "/" + schema + "/" + version);
for (String event : events) {
C2KLocalObject obj = importCluster.get(item, OUTCOME + "/" + schema + "/" + version + "/" + event);
Gateway.getStorage().put(item, obj, locker);
// importCluster.delete(item, path.toString());
}
}
}
}
use of org.cristalise.kernel.entity.C2KLocalObject in project kernel by cristal-ise.
the class BulkImport method importViewPoint.
public void importViewPoint(ItemPath item, Object locker) throws PersistencyException {
String[] contents = importCluster.getClusterContents(item, VIEWPOINT);
for (String c : contents) {
String[] subContents = importCluster.getClusterContents(item, VIEWPOINT + "/" + c);
for (String sc : subContents) {
String path = VIEWPOINT + "/" + c + "/" + sc;
C2KLocalObject view = importCluster.get(item, path);
Gateway.getStorage().put(item, view, locker);
// importCluster.delete(item, path);
}
}
}
Aggregations