ActorDefinition
Code IndexAdd Codota to your IDE (free)

Best code snippets using org.bonitasoft.engine.bpm.actor.ActorDefinition(Showing top 10 results out of 315)

origin: bonitasoft/bonita-engine

public SActorDefinitionImpl(final ActorDefinition actor) {
  super(actor.getName());
  description = actor.getDescription();
  initiator = actor.isInitiator();
}
origin: bonitasoft/bonita-engine

  private ActorDefinition getActorByName(String name) {
    for (ActorDefinition actorDefinition : getProcessDefinition().getActorsList()) {
      if (actorDefinition.getName().equals(name)) {
        return actorDefinition;
      }
    }
    return new ActorDefinitionImpl(name);
  }
}
origin: bonitasoft/bonita-engine

public DesignProcessDefinition convertXmlToProcess(String content) throws IOException {
  try (InputStream stream = new ByteArrayInputStream(content.getBytes(StandardCharsets.UTF_8))) {
    Unmarshaller unmarshaller = jaxbContext.createUnmarshaller();
    unmarshaller
        .setSchema(SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI).newSchema(this.getClass().getResource("/ProcessDefinition.xsd")));
    DesignProcessDefinition process = (DesignProcessDefinition) unmarshaller.unmarshal(stream);
    if (process.getActorInitiator() != null) {
      process.getActorInitiator().setInitiator(true);
    }
    addEventTriggerOnEvents(process.getFlowElementContainer());
    return process;
  } catch (java.lang.UnsupportedOperationException | JAXBException | SAXException e) {
    throw new IOException("Failed to deserialize the XML string provided", e);
  }
}
origin: bonitasoft/bonita-engine

public ActorDefinition getActor(final String actorName) {
  final Iterator<ActorDefinition> iterator = actors.iterator();
  ActorDefinition actorDefinition = null;
  boolean found = false;
  while (!found && iterator.hasNext()) {
    final ActorDefinition next = iterator.next();
    if (next.getName().equals(actorName)) {
      found = true;
      actorDefinition = next;
    }
  }
  return actorDefinition;
}
origin: bonitasoft/bonita-engine

private void validateActors() {
  final ActorDefinition actorInitiator = process.getActorInitiator();
  if (actorInitiator != null) {
    final String actorInitiatorName = actorInitiator.getName();
    final ActorDefinition actor = process.getActor(actorInitiatorName);
    if (actor == null) {
      designErrors.add("No actor is found for initiator '" + actorInitiatorName + "'.");
    }
    // FIXME : Don't remove. See JIRA ENGINE-1975
    // int nbInitiator = 0;
    // final List<ActorDefinition> actors = process.getActorsList();
    // for (final ActorDefinition actorDefinition : actors) {
    // if (actorDefinition.getName().equals(actorInitiatorName)) {
    // nbInitiator++;
    // }
    // if (nbInitiator > 1) {
    // designErrors.add("More than one actor are named '" + actorInitiatorName + "'. All names must be unique.");
    // }
    // }
  }
}
origin: bonitasoft/bonita-engine

  private ActorDefinition getActorByName(String name) {
    for (ActorDefinition actorDefinition : getProcessDefinition().getActorsList()) {
      if (actorDefinition.getName().equals(name)) {
        return actorDefinition;
      }
    }
    return new ActorDefinitionImpl(name);
  }
}
origin: bonitasoft/bonita-engine

public SActorDefinitionImpl(final ActorDefinition actor) {
  super(actor.getName());
  description = actor.getDescription();
  initiator = actor.isInitiator();
}
origin: bonitasoft/bonita-engine

public ActorDefinition getActor(final String actorName) {
  final Iterator<ActorDefinition> iterator = actors.iterator();
  ActorDefinition actorDefinition = null;
  boolean found = false;
  while (!found && iterator.hasNext()) {
    final ActorDefinition next = iterator.next();
    if (next.getName().equals(actorName)) {
      found = true;
      actorDefinition = next;
    }
  }
  return actorDefinition;
}
origin: bonitasoft/bonita-engine

public DesignProcessDefinition convertXmlToProcess(String content) throws IOException {
  try (InputStream stream = new ByteArrayInputStream(content.getBytes(StandardCharsets.UTF_8))) {
    Unmarshaller unmarshaller = jaxbContext.createUnmarshaller();
    unmarshaller
        .setSchema(SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI).newSchema(this.getClass().getResource("/ProcessDefinition.xsd")));
    DesignProcessDefinition process = (DesignProcessDefinition) unmarshaller.unmarshal(stream);
    if (process.getActorInitiator() != null) {
      process.getActorInitiator().setInitiator(true);
    }
    addEventTriggerOnEvents(process.getFlowElementContainer());
    return process;
  } catch (java.lang.UnsupportedOperationException | JAXBException | SAXException e) {
    throw new IOException("Failed to deserialize the XML string provided", e);
  }
}
origin: bonitasoft/bonita-engine

private void validateActors() {
  final ActorDefinition actorInitiator = process.getActorInitiator();
  if (actorInitiator != null) {
    final String actorInitiatorName = actorInitiator.getName();
    final ActorDefinition actor = process.getActor(actorInitiatorName);
    if (actor == null) {
      designErrors.add("No actor is found for initiator '" + actorInitiatorName + "'.");
    }
    // FIXME : Don't remove. See JIRA ENGINE-1975
    // int nbInitiator = 0;
    // final List<ActorDefinition> actors = process.getActorsList();
    // for (final ActorDefinition actorDefinition : actors) {
    // if (actorDefinition.getName().equals(actorInitiatorName)) {
    // nbInitiator++;
    // }
    // if (nbInitiator > 1) {
    // designErrors.add("More than one actor are named '" + actorInitiatorName + "'. All names must be unique.");
    // }
    // }
  }
}
org.bonitasoft.engine.bpm.actorActorDefinition

Javadoc

It forms part of the org.bonitasoft.engine.bpm.process.ProcessDefinition. It is used to design an actor in the context of a process.

Most used methods

  • getName
    Get the name of the actor.
  • getDescription
    Get the description of the actor.
  • isInitiator
    Can this actor start the process ?
  • setInitiator

Popular classes and methods

  • setContentView (Activity)
  • getOriginalFilename (MultipartFile)
  • notifyDataSetChanged (ArrayAdapter)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ

For IntelliJ IDEA,
Android Studio or Eclipse

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)