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
21 replies
Subscribers
5 subscribers
Views
5789 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
Hi, How can I have a Task link to a User input Task in the editable g
nimishan
over 8 years ago
Hi,
How can I have a Task link to a User input Task in the editable grid?
Thanks in advance,
Nimisha.
OriginalPostID-218009
OriginalPostID-218009
Discussion posts and replies are publicly visible
0
sikhivahans
over 8 years ago
If you are on 16.2, a!startProcess() at
forum.appian.com/.../Start_Process_Smart_Service.html
is an option for you.
If you are on 7.4+ but below 16.2, fn!startprocesswrite() at
forum.appian.com/.../summary
is an option for you. You can also find many examples in forum for this and here is the one among those many for you:
forum.appian.com/.../e-135572.
If the Appian version is prior to 7.4, fn!runprocess() is an option, but I believe its deprecated.
And in order to initiate the process, you can make use of any SAIL Component but the component should consist of 'saveInto' attribute and you should interact with the respective SAIL Component in order to trigger the operations written under 'saveInto'.
And finally ignore my last but one comment as it doesn't fit your requirement and suggested on different lines.
Though am not sure what you are trying to achieve in the process model, it might be worth checking for a possibility to implement the update functionality directly (may be by making use of a!httpWrite()?) rather than triggering a process model in case of a straight forward updates. Anyhow I would leave it to other practitioners as I am not very keen at Integrations.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
nimishan
over 8 years ago
Thanks you for providing all the useful information.
I could bind the fn!startprocesswrite() with a!submitLink() and it worked. But, I am not able to use a!submitLink() in a!gridLinkColumn() of Grid. It throws below error.
A link column [label=“Claim”] has an invalid value for “data”. “data” can only be of type SafeLink or ProcessTaskLink. Received DynamicLink at index 1
Any suggestion on how to call the startprocesswrite() from Grid? As per the comments here:
forum.appian.com/.../e-135572
(When you click on the button or link, the setter function(in this case 'startprocesswrite') will be executed. And Appian tries to pass button or link value to the setter function.). But it throws me error if I apply submitLink() in a!gridLinkColumn().
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 8 years ago
@nimishan Would you please be able to attach the code so that we can make suggestions? I can say that the writer function can be invoked from any SAIL component that has saveInto attribute.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
nimishan
over 8 years ago
This is the code,
=load(
local!testBool: bind(get: true(), set: startprocesswrite(processModelId: 1234, processParameters:_)),
.
./* grid definition and remaining fields */
.
a!gridLinkColumn(
label:"Claim",
data: a!submitLink(
label: "Claim",
value: {abc:local!data.data.abc},
saveInto: local!testBool
)
)
)
let me know if you need more information
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 8 years ago
@nimishan The way you are making use of the a!submitLink() and generating links is syntactically wrong. I'm on a mobile now but let me see if I can guide you with a link to documentation or write a sample code snippet if possible.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Tim
Certified Lead Developer
over 8 years ago
gridLinkColumn was deprecated a few versions ago, what version are you on? You should be using the links attribute of gridTextColumn:
a!gridTextColumn(
label: "Claim",
data: index(
local!data.data,
"abc",
{}
),
links: if(
local!data.totalCount = 0,
{},
apply(
a!submitLink(
value: _,
saveInto: local!testBool
),
index(
local!data.data,
"abc",
{}
)
)
)
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 8 years ago
@nimishan Here goes the code:
a!gridTextColumn(
label: "Claim",
data: index(local!data.data, "abc", {}),
links: if(local!data.totalCount=0,null,apply(a!submitLink(value: _, saveInto: {a!save(local!testBool,{abc:save!value})}), index(local!data.data, "abc", {})))
)
@tim.clarke Not sure, if I am correct but isn't it that the value should be a label value pair(in order to pass value to process parameters), that is, {abc:value} rather than with value directly. I guess as per your code snippet the value will be sent directly rather than as a label value pair. I might be wrong but that's what nu understanding is. :-)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Tim
Certified Lead Developer
over 8 years ago
@sikhi I like to leave the odd mistake in sometimes so that the OP at least has to do some of their own work ;-)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 8 years ago
@tim.clarke Ah I see, I thought that I was missing something. :-)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
nimishan
over 8 years ago
Thank you so much Tim and Sikhivahans!!! I was able to implement and it worked :)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
<
>