congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
CmmnModel.findPlanItem
Code IndexAdd Tabnine to your IDE (free)

How to use
findPlanItem
method
in
org.flowable.cmmn.model.CmmnModel

Best Java code snippets using org.flowable.cmmn.model.CmmnModel.findPlanItem (Showing top 4 results out of 315)

origin: org.flowable/flowable-cmmn-engine

protected PlanItem resolvePlanItemFromCmmnModel(CmmnModel cmmnModel, String planItemId, String caseDefinitionId) {
  PlanItem planItem = cmmnModel.findPlanItem(planItemId);
  if (planItem == null) {
    throw new FlowableException("Cannot find plan item '" + planItemId + "' in case definition with id '" + caseDefinitionId + "'");
  }
  return planItem;
}
origin: org.flowable/flowable-cmmn-engine

public void processDI(CmmnModel cmmnModel, List<CaseDefinitionEntity> caseDefinitions) {
  if (caseDefinitions.isEmpty()) {
    return;
  }
  if (!cmmnModel.getLocationMap().isEmpty()) {
    List<String> planModelIds = new ArrayList<>();
    for (Case caseObject : cmmnModel.getCases()) {
      planModelIds.add(caseObject.getPlanModel().getId());
    }
    // Verify if all referenced elements exist
    for (String cmmnReference : cmmnModel.getLocationMap().keySet()) {
      if (planModelIds.contains(cmmnReference)) {
        continue;
      }
      if (cmmnModel.findPlanItem(cmmnReference) == null && cmmnModel.getCriterion(cmmnReference) == null) {
        logger.warn("Invalid reference in diagram interchange definition: could not find {}", cmmnReference);
      }
    }
    for (Case caseObject : cmmnModel.getCases()) {
      CaseDefinitionEntity caseDefinition = getCaseDefinition(caseObject.getId(), caseDefinitions);
      if (caseDefinition != null) {
        caseDefinition.setHasGraphicalNotation(true);
      }
    }
  }
}
origin: org.flowable/flowable-cmmn-converter

PlanItem planItem = model.findPlanItem(elementId);
if (planItem != null) {
  writePlanItem(planItem, model, xtw);
origin: org.flowable/flowable-cmmn-converter

PlanItem planItem = cmmnModel.findPlanItem(association.getSourceRef());
if (planItem == null) {
  planItem = cmmnModel.findPlanItem(association.getTargetRef());
  planItemSourceRef = association.getTargetRef();
} else {
org.flowable.cmmn.modelCmmnModelfindPlanItem

Popular methods of CmmnModel

  • getCases
  • getLocationMap
  • getAssociations
  • getFlowLocationGraphicInfo
  • getGraphicInfo
  • getPrimaryCase
  • getCaseById
  • getTargetNamespace
  • <init>
  • addAssociation
  • addCase
  • addCriterion
  • addCase,
  • addCriterion,
  • addDecision,
  • addFlowGraphicInfoList,
  • addGraphicInfo,
  • addProcess,
  • findPlanItemByPlanItemDefinitionId,
  • getCriterion,
  • getDecisionById

Popular in Java

  • Reactive rest calls using spring rest template
  • setRequestProperty (URLConnection)
  • getContentResolver (Context)
  • compareTo (BigDecimal)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Path (java.nio.file)
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now