Combining startProcessWithInit with dynamic=true ?

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
joben
Posts: 221
Joined: Wed Nov 06, 2019 9:49 pm
Location: Sweden
Contact:

Combining startProcessWithInit with dynamic=true ?

Post by joben »

I have a URL that looks like this:

Code: Select all

https://example.org/AwareIM/logonOp.aw?domain=Acme&firstCommand=startProcessWithInit,TfnTest,main,TempTfn&Tfn=555555555
I want the process TfnTest to execute, and use the BO TempTfn with the Attribute value of Tfn as init parameters. In this scenario, the attribute value is a phone number.

This URL works as intended as long as you also pass the userName and password parameters in the URL, otherwise you just end up at the login screen and have to login for the process to execute. This behaviour is unwanted as long as there is an active session. I decided to change the URL to this:

Code: Select all

https://example.org/AwareIM/logonOp.aw?domain=Acme&dynamic=true&firstCommand=startProcessWithInit,TfnTest,main,TempTfn&Tfn=555555555
If I include the dynamic=true parameter in the URL, I get this error message:
Attribute dynamic was not found in business object TempTfn
It seems like dynamic is interpreted the wrong way. How do I use startProcessWithInit without having to login manually if there is an active session?
Regards, Joakim

Image
Jaymer
Posts: 2430
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: Combining startProcessWithInit with dynamic=true ?

Post by Jaymer »

that IS odd, but an image of the Tomcat Output showing the login info would be helpful
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
RLJB
Posts: 914
Joined: Tue Jan 05, 2010 10:16 am
Location: Sydney, Australia

Re: Combining startProcessWithInit with dynamic=true ?

Post by RLJB »

Joben - I just discovered the same thing, I think it is an AwareIM bug, did you get a solution to this or report it to Support yet?
Rod. Aware 8.6 (latest build), Developer Edition, on OS Linux (Ubuntu) using GUI hosted on AWS EC2, MYSQL on AWS RDS
himanshu
Posts: 722
Joined: Thu Jun 19, 2008 6:24 am
Location: India
Contact:

Re: Combining startProcessWithInit with dynamic=true ?

Post by himanshu »

I suggest instead of using url with credentials better to create an API and perform the same. You can pass your BO value to api and Process will handle all stuff for you want to process.

If I understand your requirement correctly as written above.
From,
Himanshu Jain


AwareIM Consultant (since version 4.0)
OS: Windows 10.0, Mac
DB: MYSQL, MSSQL
RLJB
Posts: 914
Joined: Tue Jan 05, 2010 10:16 am
Location: Sydney, Australia

Re: Combining startProcessWithInit with dynamic=true ?

Post by RLJB »

In this case I do actually want to login to the app and display it, and I found a workaround... add the attribute "dynamic" to your business object and it works... of course you don't need this attribute but it tricks Aware and gets around the bug :)

(hello Himanshu hope you're keeping well)
Rod. Aware 8.6 (latest build), Developer Edition, on OS Linux (Ubuntu) using GUI hosted on AWS EC2, MYSQL on AWS RDS
himanshu
Posts: 722
Joined: Thu Jun 19, 2008 6:24 am
Location: India
Contact:

Re: Combining startProcessWithInit with dynamic=true ?

Post by himanshu »

I am good Rod, Thanks.. and hope you also doing great.

This is interesting and new learning... will give a try sure.
From,
Himanshu Jain


AwareIM Consultant (since version 4.0)
OS: Windows 10.0, Mac
DB: MYSQL, MSSQL
aware_support
Posts: 7523
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Re: Combining startProcessWithInit with dynamic=true ?

Post by aware_support »

It does sound like a bug. We'll check it out
Aware IM Support Team
aware_support
Posts: 7523
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Re: Combining startProcessWithInit with dynamic=true ?

Post by aware_support »

Yes, a bug is confirmed. Will be fixed in the next build.
Aware IM Support Team
aware_support
Posts: 7523
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Re: Combining startProcessWithInit with dynamic=true ?

Post by aware_support »

This should be fixed in build 2828
Aware IM Support Team
RLJB
Posts: 914
Joined: Tue Jan 05, 2010 10:16 am
Location: Sydney, Australia

Re: Combining startProcessWithInit with dynamic=true ?

Post by RLJB »

oh that's cool - tks support
Rod. Aware 8.6 (latest build), Developer Edition, on OS Linux (Ubuntu) using GUI hosted on AWS EC2, MYSQL on AWS RDS
Post Reply