fix bug when node have not some resource
This commit is contained in:
parent
69a3755b9a
commit
12bb6931fd
|
@ -122,6 +122,10 @@ public class CRP extends SvrProcess {
|
|||
node = owf.getNode(nodeId);
|
||||
log.fine("PP_Order Node:" + node.getName() != null ? node.getName() : "" + " Description:" + node.getDescription() != null ? node.getDescription() : "");
|
||||
MResource resource = MResource.get(getCtx(), node.getS_Resource_ID());
|
||||
|
||||
if(resource== null)
|
||||
continue;
|
||||
|
||||
MResourceType resourceType = resource.getResourceType();
|
||||
|
||||
if(!reasoner.isAvailable(resource))
|
||||
|
@ -156,6 +160,10 @@ public class CRP extends SvrProcess {
|
|||
node = owf.getNode(nodeId);
|
||||
log.fine("PP_Order Node:" + node.getName() != null ? node.getName() : "" + " Description:" + node.getDescription() != null ? node.getDescription() : "");
|
||||
MResource resource = MResource.get(getCtx(), node.getS_Resource_ID());
|
||||
|
||||
if(resource == null)
|
||||
continue;
|
||||
|
||||
MResourceType resourceType = resource.getResourceType();
|
||||
|
||||
if(!reasoner.isAvailable(resource))
|
||||
|
|
Loading…
Reference in New Issue