Priyotosh_gangu ly

Commodore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-07-30
13:45
238 views
Which module to put code for synchronization
Spoiler
Whenever, user drags a requirement to a certain folder (called Business Process Structure), Requirement or Feature ID needs to be added in Feature list. It will be an item addition in that list.
Any user can drag requirement to that certain folder - thus Feature ID needs to be added in the list as an item for all user. But as per current scenario, a list can only be updated with user having admin access.
(List items can't make editable for all users - it still only tdadmin who has the update eligibility)
Hence am using a function called 'SyncFet' to update a list to add an item value in that list and syncing if the user is TDAdmin.
I am using below criteria to update the list in Canlogin Module like below:
'=============Auto Sync of Feature=====
if User.IsInGroup("TdAdmin") then
Call SyncFet
'Msgbox "SyncFet Called"
end if
'=============================
I need input in identifying optimum module which I should use as sync like ActionCanExecute / EnterModule etc.
Requirement is, if any of the users having admin access is online, this SyncFet function should seamlessly update that list.
Please note that SyncFet feature is updating the list as expected and I do not need any technical input on this. I only need input to where should I put mentioned code so that Syncfet gets called maximum time but not to the extent that it becomes slowness issue with any admin user.
Can anyone help.
Any user can drag requirement to that certain folder - thus Feature ID needs to be added in the list as an item for all user. But as per current scenario, a list can only be updated with user having admin access.
(List items can't make editable for all users - it still only tdadmin who has the update eligibility)
Hence am using a function called 'SyncFet' to update a list to add an item value in that list and syncing if the user is TDAdmin.
I am using below criteria to update the list in Canlogin Module like below:
'=============Auto Sync of Feature=====
if User.IsInGroup("TdAdmin") then
Call SyncFet
'Msgbox "SyncFet Called"
end if
'=============================
I need input in identifying optimum module which I should use as sync like ActionCanExecute / EnterModule etc.
Requirement is, if any of the users having admin access is online, this SyncFet function should seamlessly update that list.
Please note that SyncFet feature is updating the list as expected and I do not need any technical input on this. I only need input to where should I put mentioned code so that Syncfet gets called maximum time but not to the extent that it becomes slowness issue with any admin user.
Can anyone help.
3 Replies
Roddy

Micro Focus Expert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-08-01
03:07
According to my personal understanding, it is not a best practice to put sync function in workflow. You are not able to control how often it will be called. In the meantime, it absolutely affects the user's experience.
I would suggest you to get a dedicated client machine to use OTA script to do the feature job. I believe the script is almost same as the function "SyncFet" you implemented, only additional login and logout need to be handle.
In this way, you can use windows tasks to run the scripts as often as you wish.
Priyotosh_gangu ly

Commodore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-08-03
09:20
Thanks a lot @Roddy for your help.
Would it be possible for you to provide some more information on this on how to achieve that.
Roddy

Micro Focus Expert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-08-03
15:10
If you mean the OTA API part, you can refer to ALM online help.
https://admhelp.microfocus.com/alm/api_refs/ota/Default.htm
https://admhelp.microfocus.com/alm/api_refs/ota/Default.htm