Tabnine Logo
ProcessInstanceAttribute
Code IndexAdd Tabnine to your IDE (free)

How to use
ProcessInstanceAttribute
in
pl.net.bluesoft.rnd.processtool.model

Best Java code snippets using pl.net.bluesoft.rnd.processtool.model.ProcessInstanceAttribute (Showing top 8 results out of 315)

origin: org.aperteworkflow/model

public void removeAttribute(ProcessInstanceAttribute attr) {
  attr.setProcessInstance(null);
  processAttributes.remove(attr);
  if (attr.getId() > 0) {
    if (toDelete == null) {
      toDelete = new HashSet<ProcessInstanceAttribute>();
    }
    toDelete.add(attr);
  }
}
origin: org.aperteworkflow/model

public ProcessInstanceAttribute findAttributeByKey(String key) {
  Set<ProcessInstanceAttribute> attrs = getProcessAttributes();
  for (ProcessInstanceAttribute pia : attrs) {
    if (pia.getKey() != null && pia.getKey().equals(key)) {
      return pia;
    }
  }
  return null;
}
origin: org.aperteworkflow/base-widgets

    ? (ProcessInstanceAttribute) getClass().getClassLoader().loadClass(element.getInheritedAttributeClass()).newInstance()
    : new ProcessInstanceSimpleAttribute();
attribute.setProcessInstance(processInstance);
attribute.setKey(attributeName);
origin: org.aperteworkflow/model

public void addAttribute(ProcessInstanceAttribute attr) {
  attr.setProcessInstance(this);
  processAttributes.add(attr);
}
origin: org.aperteworkflow/integration

if (attrib instanceof ProcessInstanceAttachmentAttribute && attrib.getId()!=null){
  session.evict(session.get(attrib.getClass(), attrib.getId()));
origin: org.aperteworkflow/base-widgets

@Override
public void loadData(final BpmTask task) {
  boundProperties.clear();
  dictContainers.clear();
  if (Strings.hasText(widgetsDefinition)) {
    widgetsDefinitionElement = (WidgetsDefinitionElement) definitionLoader.unmarshall(widgetsDefinition);
  }
  this.processInstance = task.getProcessInstance();
  processAttributes.clear();
  for (ProcessInstanceAttribute attribute : processInstance.getProcessAttributes()) {
    processAttributes.put(attribute.getKey(), attribute);
  }
}
origin: org.aperteworkflow/base-widgets

processAttributes.clear();
for (ProcessInstanceAttribute attribute : pi.getProcessAttributes()) {
  processAttributes.put(attribute.getKey(), attribute);
origin: org.aperteworkflow/base-widgets

  @Override
  public void evaluate(Property component, WidgetElement element) throws Exception {
    if (!component.isReadOnly()) {
      ProcessInstanceAttribute attribute = fetchOrCreateAttribute(element);
      if (component instanceof FileUploadComponent) {
        ProcessInstanceAttachmentAttribute attachment = (ProcessInstanceAttachmentAttribute) component.getValue();
        if (attachment==null) return;
        attachment.setProcessState(task.getTaskName());
        attachment.setProcessInstance(task.getProcessInstance());
        attachment.setKey(attribute.getKey());
        PropertyUtils.setProperty(processAttributes, element.getBind(), component.getValue());
      } else if (attribute instanceof ProcessInstanceSimpleAttribute) {
        if (element instanceof DateWidgetElement) {
          String dateString = null;
          if (component.getValue() != null)
            dateString = new SimpleDateFormat(((DateWidgetElement) element).getFormat()).format(component.getValue());
          ((ProcessInstanceSimpleAttribute) attribute).setValue(dateString);
        } else if (component.getValue() != null) {
          ((ProcessInstanceSimpleAttribute) attribute).setValue(component.getValue().toString());
        }
      } else {
        PropertyUtils.setProperty(processAttributes, element.getBind(), component.getValue());
      }
    }
  }
};
pl.net.bluesoft.rnd.processtool.modelProcessInstanceAttribute

Javadoc

Process instance attribute. This class is meant to be expanded.

Most used methods

  • getId
  • getKey
  • setProcessInstance
  • setKey

Popular in Java

  • Finding current android device location
  • putExtra (Intent)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • addToBackStack (FragmentTransaction)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top Vim plugins
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