workflow process testing failure

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

kotinkarwak
Ebase User
Posts: 109
Joined: Mon Sep 21, 2015 9:55 pm

workflow process testing failure

#1

Postby kotinkarwak » Wed Sep 23, 2015 9:29 pm

Hi all,
Working through tutorials and stumbled on this error when running the test within designer. Getting the following error dialog.
Have worked through the notes and not sure what I may have missed.

Image

<a>enactment</a>

Any pointers,
Thanks[/img]


NOTE: http://forum.ebasetech.com/forum/viewto ... mail+setup
Last edited by kotinkarwak on Thu Sep 24, 2015 9:57 pm, edited 1 time in total.
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Thu Sep 24, 2015 7:33 am

You should review the instructions in "Part 5: Associate a Business View with the LAPTOP process" of the tutorial. The associations you need are: Workflow Process -> Business View and Business View -> Email Resource. The error says that the second one of these is missing.
0 x

kotinkarwak
Ebase User
Posts: 109
Joined: Mon Sep 21, 2015 9:55 pm

#3

Postby kotinkarwak » Thu Sep 24, 2015 10:38 am

Thanks Jon, Have resolved a typo in my code.
One more question.
I did not expect even working through the test to actually get e-mail sent to my test email account for I assume there is a configuration required to be in place for emails to actually work. Was hoping to use mandrill email services (SMTP), any setup notes available for this?
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#4

Postby Jon » Thu Sep 24, 2015 11:19 am

No set up notes for Mandrill I'm afraid. But with Ebase Xi V4.5 you don't have many choices if you want to use Email Resources (which is by far the simplest way to send an email). You can only specify the email server name or ip address - this is property Ufs.emailHostId in file UFSSetup.properties which is in UfsServer/tomcat/webapps/ufs/WEB-INF/classes. If you change this file you need to restart the server. Here's some documentation on these properties http://dev-docs.verj.io/ufs/doc/UFS_sta ... meters.htm. In the Email Resource you can also specify a username/password combination which is used for authentication.

With version 4.5, if you want to do anything more complicated e.g. use TLS or SSL encryption - which might be required by Mandrill, you need to write some script code to use javamail. So you may find that your Mandrill server will reject any emails. I won't include an example of this javamail code as it's a fairly advanced thing to do and you're just starting with Ebase.

In Ebase Xi version 5.0, the email support has been enhanced and supports many more configuration options including TSL/SSL. This should allow you to configure any email server including Mandrill and send emails using Email Resources. Version 5.0 is in beta at the moment and is downloadable from our website if you're interested.
0 x

kotinkarwak
Ebase User
Posts: 109
Joined: Mon Sep 21, 2015 9:55 pm

#5

Postby kotinkarwak » Thu Sep 24, 2015 10:54 pm

Jon,
Downloaded V5 and successfully setup a mandrill email. Thanks.
0 x

kotinkarwak
Ebase User
Posts: 109
Joined: Mon Sep 21, 2015 9:55 pm

#6

Postby kotinkarwak » Fri Sep 25, 2015 1:50 pm

working through the laptop request example within V5. Still having e-mail submission issues. The success note I sent earlier was for a run via a button script but when configured through workflow, something is still a miss. I have added the sequences ok, and believe have not made a hash of "Business View" setup since it no longer exists as a file option but rather added the resource. This failure is both in workflow test run mode and actual form run mode.
One this I am not completely sure with is the user authentication that popped up in v4.5 is not showing up in v5.


project zip file (v5)
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#7

Postby Jon » Fri Sep 25, 2015 3:10 pm

Each Email Resource has to be connected to an Email Account and it looks like this is missing from your Email Resource. You might already have an Email Account set up and working - as you said earlier that you had email working ok. If not, you create an Email Account in Version 5 using the Server Administration app and this can be launched from the designer from the Tools menu - user name will be ebaseuser. The email account contains the email server name, username and password etc. Once you have an Email Account you can add it to your Email Resource.
0 x

kotinkarwak
Ebase User
Posts: 109
Joined: Mon Sep 21, 2015 9:55 pm

#8

Postby kotinkarwak » Fri Sep 25, 2015 5:31 pm

Thanks for pointer, getting clearer as I go.
Authentication.
I Have enabled security
Home > Server Properties > Security Properties
setting

1). Enable Authentication Of New Users: to true and
2). Show Userid/Password Pane: to true, all other fields are as default.

I have two users defined, ebaseuser and kotin who will be of the MANAGER role. Using local test server from the developer.

My forms still open without requesting/requiring login. Looking at documentation on security is massive with various scenarios but as a start just need bare-bone setting to force all authentication.
Please advice.
Regards
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#9

Postby Jon » Fri Sep 25, 2015 5:50 pm

That all sounds good and I think it should work. When "Enable Authentication Of New Users" is checked, all new user sessions should see a username/password prompt with the default implementation. If you don't see that, it's probably because you have an existing session. Try closing your browser, then submit a form again.

It's quite an undertaking - getting through this tutorial!
0 x

kotinkarwak
Ebase User
Posts: 109
Joined: Mon Sep 21, 2015 9:55 pm

#10

Postby kotinkarwak » Fri Sep 25, 2015 6:24 pm

You bet!, a lot of gnashing of teeth but all because I am pretty new I guess and should with the forum members guidance will be singing this song ALOUD!

You might need to rewrite the tutorials for v5 because you have changed a lot of where the explanation in doc shows...
0 x


Who is online

Users browsing this forum: Bing [Bot] and 9 guests