Hi All, I have one html form outside of Appian containing three text values

Hi All,
I have one html form outside of Appian containing three text values and one submit button.
Is it possible to trigger an Appian process on submit of html form?
Triggered process should capture all three filed values as well.

Thanks...

OriginalPostID-111601

OriginalPostID-111601

  Discussion posts and replies are publicly visible

Parents
  • The following example shows how to pass the parameters in spite of the order they were added to the model. In the example I have only three process parameters. You can use this as a reference and refactor it to make it more reusable. This is just to show you how to build NamedTypedValues.

    TypedValue typedValue = new TypedValue(Long.valueOf(AppianType.INTEGER), new Long(100));
    NamedTypedValue namedTypeValue = new NamedTypedValue(typedValue,"anIntegerNumber");
    ProcessVariableInstance pvInstance = new ProcessVariableInstance(namedTypeValue);

    ProcessVariable[] processVariables = new ProcessVariable[3];
    processVariables[0] = pvInstance;

    typedValue = new TypedValue(Long.valueOf(AppianType.STRING), new String("fromAPI"));
    namedTypeValue = new NamedTypedValue(typedValue,"wMyOtherText");
    pvInstance = new ProcessVariableInstance(namedTypeValue);
    processVariables[1] = pvInstance;


    typedValue = new TypedValue(Long.valueOf(AppianType.STRING), new String("fromAPI2"));
    namedTypeValue = new NamedTypedValue(typedValue,"zMyText");
    pvInstance = new ProcessVariableInstance(namedTypeValue);
    processVariables[2] = pvInstance;

    ProcessStartConfig config = new ProcessStartConfig();
    config.setProcessParameters(processVariables);

    pds.initiateProcess(processModelId, config);
Reply
  • The following example shows how to pass the parameters in spite of the order they were added to the model. In the example I have only three process parameters. You can use this as a reference and refactor it to make it more reusable. This is just to show you how to build NamedTypedValues.

    TypedValue typedValue = new TypedValue(Long.valueOf(AppianType.INTEGER), new Long(100));
    NamedTypedValue namedTypeValue = new NamedTypedValue(typedValue,"anIntegerNumber");
    ProcessVariableInstance pvInstance = new ProcessVariableInstance(namedTypeValue);

    ProcessVariable[] processVariables = new ProcessVariable[3];
    processVariables[0] = pvInstance;

    typedValue = new TypedValue(Long.valueOf(AppianType.STRING), new String("fromAPI"));
    namedTypeValue = new NamedTypedValue(typedValue,"wMyOtherText");
    pvInstance = new ProcessVariableInstance(namedTypeValue);
    processVariables[1] = pvInstance;


    typedValue = new TypedValue(Long.valueOf(AppianType.STRING), new String("fromAPI2"));
    namedTypeValue = new NamedTypedValue(typedValue,"zMyText");
    pvInstance = new ProcessVariableInstance(namedTypeValue);
    processVariables[2] = pvInstance;

    ProcessStartConfig config = new ProcessStartConfig();
    config.setProcessParameters(processVariables);

    pds.initiateProcess(processModelId, config);
Children
No Data