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
13 replies
Subscribers
6 subscribers
Views
4525 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
Are there plugins to create user group during run-time?
sudhak
over 8 years ago
Are there plugins to create user group during run-time?
OriginalPostID-224415
OriginalPostID-224415
Discussion posts and replies are publicly visible
0
vineeta6579
over 8 years ago
@sudhak Hi, have you had a chance to look at 'Create Custom Group' Smart Service at
forum.appian.com/.../Create_Custom_Group_Smart_Service.html
Or is it not what you are looking for?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sudhak
over 8 years ago
Im running 7.9 and I don't see the createGroup smart service selection choices from the expression rule editor. Am I missing anything?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
vineeta6579
over 8 years ago
The Create Custom Group smart service allows you to add new custom groups at runtime from your process applications. It is found under Appian Smart Services > Identity Management in the Process Modeler.
Ref link:-
forum.appian.com/.../Create_Custom_Group_Smart_Service.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sudhak
over 8 years ago
Yes, I see this. However, it is not available as an expression function. Should I configure something?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
vineeta6579
over 8 years ago
Its possible to execute smart service in sail, but 7.9 does't support it.
forum.appian.com/.../Appian_Release_Notes.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
chetany
A Score Level 1
over 8 years ago
I would suggest that take a look at the source code of "Create custom Group" Smart Service. Re-use the same code and create an expression function. It should be a writer function that you need to create. A writer function is required if your expression function has side-effects. Then you can use the expression function in SAIL in combination with bind()
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 8 years ago
@sudhak If your intention is to invoke the smart service in SAIL, for time-being you may replicate it by using the 'Start Process Writer' plugin at http://bit.ly/29UQyvg. So you can create a process model that creates a Custom Group. And this process model can be invoked from SAIL by making use of the plugin mentioned previously. A trade-off with this is, the plugin exhibits fire and forget behavior. So in order to overcome this, you need to interact with another SAIL component and then you can read the id of the created group by querying the database/ analytics.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
chetany
A Score Level 1
over 8 years ago
@sudhak, The solution given by Sikhivahans is a good one. It will get the job done. However, if you are looking for a function like a!createCustomGroup which is there in Appian 16.2, then I have created a plugin. I have created an expression function which can be used with bind(). It creates a custom group at runtime. Please find the attached zip file. you can go through the code - it works but is not perfect. I have not added validations for the different parameters the function takes. My expression function also has the name createcustomgroup().
SAIL example to use the plugin function created:
load(
local!grpName: fn!bind({}, createcustomgroup(
name: _,
description: "New group",
delegatedCreation: true,
membershipPolicy: "AUTOMATIC",
securityType: "PUBLIC",
groupPrivacy: "LOW"
)) ,
a!formLayout(
label: "Test group Add",
firstColumnContents: {
a!textField(
label: "Group Name",
value: local!grpName,
saveInto: local!grpName
)
}
)
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
saravanarajanj
Certified Senior Developer
over 8 years ago
Hi, we have Appian Smartservice for creating Custom Group.Thanks!
forum.appian.com/.../Create_Custom_Group_Smart_Service.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
chetany
A Score Level 1
over 8 years ago
@saravanarajanj, the smart service is not useful since here rhe requirement is to create group from the SAIL UI itself. Either the Process writer plugin or a custom expression function which returns a writer can achieve this.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
>