Web interface history

170 views
Skip to first unread message

al...@wedosoft.net

unread,
Apr 10, 2017, 4:58:43 AM4/10/17
to Fujitsu RunMyProcess Developer Community
Hello Team,

I am considering how to achive web interface save history. It means that I want to check all save recod whenever user save WI. It can be pending step(process is not launched) or can be manual task step.

Of course, history widget can help this. But history widget can show historized variable by user selection.

I want to know all variable when the user save document at that time and there are hundreds of variables and array and complex structure.

So I used api listener in WI and triggered process as back-end. Process instance is made but there is no variable and value.

Would you ping me best practice that can help this?

Regards,
Alan.

Abhilash Sambhare

unread,
Apr 12, 2017, 6:35:46 AM4/12/17
to Fujitsu RunMyProcess Developer Community, al...@wedosoft.net
Hi Alan,

Good Day.

Apologies for delay in response.

You can use connector available in library to get the complete information of process instances.This connector will provide the detailed information of process instance variables.

Please find below the details of Connectors:

Provider Name : RunMyProcess - Secured Connection

Connector Name : Get details of a process instance

Input Parameters:

P_Customer:It will be retrieve from internal parameters of process.

request_id:you can retrieve it from P_request in internal parameters of process.

Hope this helps you.Please don't hesitate to contact us for any further query.

Thanks & Regards,
Abhilash Sambhare
Fujitsu RunMyProcess Support








--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum+unsubscribe@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/bb6c4776-b1f0-428b-9678-3dffc5e345a5%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.

Prachi Chandak

unread,
Apr 14, 2017, 5:34:01 PM4/14/17
to suppor...@runmyprocess.com
Hi Alan,

Have to tried the above solution provided by Abhilash.
Please update once done, waiting for you response.

Thank You.
Prachi

al...@wedosoft.net

unread,
Apr 17, 2017, 9:14:23 PM4/17/17
to Fujitsu RunMyProcess Developer Community
> To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
>
> To post to this group, send email to suppor...@runmyprocess.com.
>
> Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.
>
> To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/bb6c4776-b1f0-428b-9678-3dffc5e345a5%40runmyprocess.com.
>
> For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.
>
>
>
>
>
>
>
> --
>
> Fujitsu - RunMyProcess
>
> ---
>
> You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
>
> To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
Hi Prachi,

Apologizing for late reply.

Your comment helps me. You can mark this articles as answered.

Regards,
Alan.

al...@wedosoft.net

unread,
Apr 17, 2017, 9:54:00 PM4/17/17
to Fujitsu RunMyProcess Developer Community
Hi,

May I ask one more question?

Is it possible to check what fields modified among those revision instances?

For example, when a user edited some fields and saved document. It saved as process instances. In this case, how can I know that user edited what fields?

Please ping me some clue to resolve this.

Regards,
Alan.

Abhilash Sambhare

unread,
Apr 20, 2017, 8:19:44 AM4/20/17
to Fujitsu RunMyProcess Developer Community, Alan Lee
Hi Alan,

Please find the below solution to get the modified variables of the fields and saved document:

1.Create a connector getting all the computed parameters:
Connector configuration is as follows-
-Connector Url:live/${P_customer}/request/${request_id}?P_mode=${P_mode}
-Input Parameters:
a.P_Customer:It will be retrieve from internal parameters of process.
b.request_id:you can retrieve it from P_request in internal parameters of process
c.P_mode:Mode of execution.

2.Construct a CAPI with :
-A activity calling the above connector
-Set P_customer,request_id,P_mode in the input parameters 
-Set in output the array of computed parameters of a process instance as 
<#list P_result.feed.entry  as x>
<#if x.category.@term=="computed">
<#assign computed_param ={}>
<#assign computed_param = x.content.P_value>
${computed_param}
</#if>
</#list>
3.Run the CAPI and you will get information of all modified variables.

Hope this helps you.Please let us know if you have any query/doubt

Thanks & Regards,
Abhilash Sambhare
Fujitsu RunMyProcess Support

To unsubscribe from this group and stop receiving emails from it, send an email to supportforum+unsubscribe@runmyprocess.com.

To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.

Gunjan Rajgure

unread,
Apr 22, 2017, 5:01:16 AM4/22/17
to suppor...@runmyprocess.com, Alan Lee

Hi Alan,


Good Day.


Could you please confirm that issue has been clarified.

Please feel free to contact us for any other query.


Thanks & regards

Gunjan Rajgure
Fujitsu - RunMyProcess Support

al...@wedosoft.net

unread,
Apr 24, 2017, 9:17:46 PM4/24/17
to Fujitsu RunMyProcess Developer Community, al...@wedosoft.net
> To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/dd506cc1-b572-4090-a236-38d4b7241093%40runmyprocess.com.
>
>
>
> For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.
>
>
>
>
>
>
>
> --
>
> Fujitsu - RunMyProcess
>
> ---
>
> You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
>
> To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
>
> To post to this group, send email to suppor...@runmyprocess.com.
>
> Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.
>
Hello, sorry fo late reply.

I tried to do as you suggeted. When I save document, @term=="computed" retured all variable. So I couldn't find modified variable value.

I understand what you had suggested means. When a user save document, is it possible to find what fields are modifed?

Regards,
Alan.

mbureau

unread,
Apr 27, 2017, 6:22:27 AM4/27/17
to Fujitsu RunMyProcess Developer Community, al...@wedosoft.net
Good morning, 

Here is the procedure you should follow to get all the variables of the widget modified in the web interface: 

- Set up in the JS pre-launch screen button the function RMPApplication.getAllWidgets() 
- Define a tab "all_varWidgets_tab"with the result
Set up in the JS of the "Save" button the same function RMPApplication.getAllWidgets() which will gets now all the widget variables modified or not
Define a tab "saved_varWidgets_tab"with the result
- Get only the modfied variables by comparing the differences between the two following tabs : "all_varWidgets_tab" and "saved_varWidgets_tab"
Define a tab "modified_varWidgets_tab"with the result

So, the "modified_varWidgets_tab" will be the array of only all the variables modified in the web interface when a document is saved.

Hope it could help. 

Best regards, 

Marion Bureau

Marion Bureau

unread,
Apr 27, 2017, 7:41:44 AM4/27/17
to al...@wedosoft.net, suppor...@runmyprocess.com
Alan, 

I see what you mean. 
This is actually an other way to do it. 
To use the process listener, I advice you to look up the following documentation: 

Best regards, 

Marion Bureau



Marion Bureau

Support & Training Engineer
RunMyProcess

 

mbu...@runmyprocess.com


3 rue de Gramont

75002 Paris, France

+33 (0) 1 75 77 51 82
www.runmyprocess.com
    
img-275-180-2
img-275-180-2

To unsubscribe from this group and stop receiving emails from it, send an email to supportforum+unsubscribe@runmyprocess.com.

To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.
Reply all
Reply to author
Forward
0 new messages