Codota Logo
TaskRenderingSettings.getTask
Code IndexAdd Codota to your IDE (free)

How to use
getTask
method
in
org.jbpm.console.ng.ga.forms.service.providing.TaskRenderingSettings

Best Java code snippets using org.jbpm.console.ng.ga.forms.service.providing.TaskRenderingSettings.getTask (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: org.jbpm/jbpm-console-ng-workbench-forms-integration-backend

@Override
protected String getFormName( TaskRenderingSettings settings ) {
  return settings.getTask().getFormName();
}
origin: org.jbpm/jbpm-console-ng-workbench-forms-integration-backend

@Override
protected Map<String, Object> getOutputValues( Map<String, Object> values,
                        FormDefinition form,
                        TaskRenderingSettings settings ) {
  if ( isValid( form ) ) {
    TaskDefinition task = settings.getTask();
    // Removing task inputs
    task.getTaskInputDefinitions().keySet().forEach( key -> {
      if ( !task.getTaskOutputDefinitions().containsKey( key ) ) {
        values.remove( key );
      }
    } );
    return values;
  }
  throw new IllegalArgumentException( "Form not valid for task" );
}
origin: org.jbpm/jbpm-console-ng-generic-forms-backend

@Override
public StaticHTMLFormRenderingSettings render( TaskRenderingSettings settings ) {
  Map<String, Object> renderContext = new HashMap<String, Object>();
  renderContext.put( "task", settings.getTask() );
  renderContext.put( "marshallerContext", settings.getMarshallerContext() );
  Map<String, Object> inputs = settings.getInputs();
  if ( inputs != null && !inputs.isEmpty() ) {
    renderContext.put( "inputs", inputs );
    renderContext.putAll( inputs );
  }
  Map<String, Object> outputs = settings.getOutputs();
  if ( outputs != null && !outputs.isEmpty() ) {
    renderContext.put( "outputs", outputs );
    renderContext.putAll( outputs );
    settings.getTask().setOutputIncluded( true );
  }
  return renderForm( settings.getTask().getName(), getTaskTemplateInputStream( settings ), renderContext );
}
origin: org.jbpm/jbpm-console-ng-workbench-forms-integration-backend

@Override
protected Map<String, Object> generateRawFormData( TaskRenderingSettings settings,
                          FormDefinition form ) {
  final Map<String, Object> formData = new HashMap<>();
  if ( isValid( form ) ) {
    Map<String, Object> inputs = settings.getInputs();
    Map<String, Object> outputs = settings.getOutputs();
    formData.putAll( inputs );
    if ( settings.getTask().isOutputIncluded() ) {
      formData.putAll( outputs );
    }
  }
  return formData;
}
origin: org.jbpm/jbpm-console-ng-workbench-forms-integration-backend

@Override
protected void prepareContext( TaskRenderingSettings settings, BackendFormRenderingContext context ) {
  context.getRenderingContext().setRenderMode( !"InProgress".equals( settings.getTask().getStatus() ) ? RenderMode.READ_ONLY_MODE : RenderMode.EDIT_MODE );
}
origin: org.jbpm/jbpm-console-ng-workbench-forms-integration-backend

List<JBPMVariable> variables = new ArrayList<>();
TaskDefinition task = settings.getTask();
org.jbpm.console.ng.ga.forms.service.providingTaskRenderingSettingsgetTask

Popular methods of TaskRenderingSettings

  • <init>
  • getInputs
  • getMarshallerContext
  • getOutputs
  • getFormContent

Popular in Java

  • Creating JSON documents from java classes using gson
  • getApplicationContext (Context)
  • onRequestPermissionsResult (Fragment)
  • putExtra (Intent)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now