I have been using Aware now for over 11 Years and no and again the simplest things make me start to question
my own sanity.....
For Example....
You have a Process called MyProcess that has two Rules
Rule1:
FIND MyBO WHERE MyBO.MyData = 'TEST' TAKE BEST 1
CallSubProcess
Rule2:
CREATE LogRecord WITH LogRecord.LogTimestamp = CURRENT_TIMESTAMP
So the stupidly simple question is....
If FIND MyBO WHERE MyBO.MyData = 'TEST' TAKE BEST 1 does NOT FIND any Records....
a. Does CallSubProcess get executed ?
b. Does Rule2 get executed ?
For those who are scratching their head wondering how I could be asking this... it has to do with Schedule Rules not triggering reliably.
I Think I Must Be Going Crazy :-|
-
- Posts: 2431
- Joined: Mon Jul 02, 2012 12:24 am
- Location: Ulaanbaatar, Mongolia
I Think I Must Be Going Crazy :-|
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Re: I Think I Must Be Going Crazy :-|
Have you reviewed the logs?
V8.8
MySQL, AWS EC2, S3
PDFtk Toolkit
Heavy on AwareIM Reports
MySQL, AWS EC2, S3
PDFtk Toolkit
Heavy on AwareIM Reports
Re: I Think I Must Be Going Crazy :-|
I've never done it that way.
I'll break Rule 1 into 2 Rules and use SEARCH_COUNT > 0 (or SEARCH_COUNT = 1) to call the subtask.
But as to the brain teaser:
a) I'd say it always calls the subtask, but since thats ambiguous (pending tests), I'd examine logs or not worry about it since I'd be using SEARCH_COUNT
b) yes, always creates the Log.
I'll break Rule 1 into 2 Rules and use SEARCH_COUNT > 0 (or SEARCH_COUNT = 1) to call the subtask.
But as to the brain teaser:
a) I'd say it always calls the subtask, but since thats ambiguous (pending tests), I'd examine logs or not worry about it since I'd be using SEARCH_COUNT
b) yes, always creates the Log.
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
Jaymer
Aware Programming & Consulting - Tampa FL
Re: I Think I Must Be Going Crazy :-|
I would think both are executed no matter what as you don't have any conditional parts in there. I could be wrong though.
Henrik (V8 Developer Ed. - Windows)
-
- Posts: 1473
- Joined: Tue Jan 24, 2017 5:51 am
- Location: 'Stralya
Re: I Think I Must Be Going Crazy :-|
I have mused over this one before and committed myself to use IF SEARCH_COUNT as the stage gate to my sub processes. I then forget every time.
I worked it out because I found processes running and not generating records because when tracked back the search didn't return anything.
Yes AIM continues with the process but generates warnings in the log that there is no BO
I worked it out because I found processes running and not generating records because when tracked back the search didn't return anything.
Yes AIM continues with the process but generates warnings in the log that there is no BO
Re: I Think I Must Be Going Crazy :-|
I just wanted to add... you probably are going crazy regardless of the answer to this question
Rod. Aware V9 (latest build), Developer Edition, on OS Linux (Ubuntu) using GUI hosted on AWS EC2, MYSQL on AWS RDS