Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
14 replies
Subscribers
9 subscribers
Views
4818 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Hi All, I have one html form outside of Appian containing three text values
mohanp
over 10 years ago
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
0
Eduardo Fuentes
Appian Employee
over 10 years ago
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);
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Eduardo Fuentes
Appian Employee
over 10 years ago
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);
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data