Appian Community and Appian Academy are being upgraded. From July 24–August 3, the Appian Community will be in read-only mode. During this time, the site will be read-only and user registration will be disabled. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!
The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.
Hi everyone,
I encountered an issue regarding saving process variable using a!startProcess -> onSuccess on version 25.4, the fv!processInfo.pv.subCategory was not saved back into local variable ri!checkStatusofChangingCategory. Here is the code:
a!startProcess( processModel: cons!NFL_CONS_PROCESS_CHANGE_CASE_TYPE_CATEGORY, processParameters: { subCategory: ri!subCategory, newCategoryId: local!selectedNewCategory }, onSuccess: { ri!saveInto, a!save( ri!checkStatusofChangingCategory, append( ri!checkStatusofChangingCategory,fv!processInfo.pv.subCategory ) ), a!save( local!currentCategory, local!selectedNewCategory ), a!save(ri!subCategory, null), a!save(local!selectedNewCategory, null),
a!startProcess(
processModel: cons!NFL_CONS_PROCESS_CHANGE_CASE_TYPE_CATEGORY,
processParameters: {
subCategory: ri!subCategory,
newCategoryId: local!selectedNewCategory
},
onSuccess: {
ri!saveInto,
a!save(
ri!checkStatusofChangingCategory,
append(
)
),
local!currentCategory,
local!selectedNewCategory
a!save(ri!subCategory, null),
a!save(local!selectedNewCategory, null),
} )
}
Discussion posts and replies are publicly visible
The major difference between a!startProcess_24r3 and latest a!a!startProcess is about auto scaled and asynchronous process handling. Depending on the state of process the properties returned can vary. For example, as per the ProcessInfo properties, onInComplete for a synchronous process returns empty pv list. Using just isSynchronous as true would return pv value for a Synchronous process.
So Can you try once just with the isSynchronous flag and without onInComplete attribute and see if it works.