private boolean filter(Item item) { return !(item instanceof Actionable) || !defaultBranchOnly || ((Actionable) item).getAction(PrimaryInstanceMetadataAction.class) != null; }
SCMSourceOwner owner = getOwner(); if (owner instanceof Actionable) { GitHubLink repoLink = ((Actionable) owner).getAction(GitHubLink.class); if (repoLink != null) { String url;
private synchronized boolean isDeclarativeRun(@Nonnull FlowExecution execution) { if (!declarativeRuns.containsKey(execution)) { boolean isDeclarative = false; try { FlowExecutionOwner owner = execution.getOwner(); if (owner != null && owner.getExecutable() instanceof Actionable) { if (((Actionable) owner.getExecutable()).getAction(ExecutionModelAction.class) != null) { isDeclarative = true; } } } catch (IOException e) { LOGGER.log(Level.WARNING, "Error loading WorkflowRun for FlowNode: {0}", e); } declarativeRuns.put(execution, isDeclarative); } return declarativeRuns.get(execution); }