I Think I Must Be Going Crazy :-|

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
customaware
Posts: 2431
Joined: Mon Jul 02, 2012 12:24 am
Location: Ulaanbaatar, Mongolia

I Think I Must Be Going Crazy :-|

Post by customaware »

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.
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Image
kklosson
Posts: 1658
Joined: Sun Nov 23, 2008 3:19 pm
Location: Virginia

Re: I Think I Must Be Going Crazy :-|

Post by kklosson »

Have you reviewed the logs?
V8.8
MySQL, AWS EC2, S3
PDFtk Toolkit
Heavy on AwareIM Reports
Jaymer
Posts: 2528
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: I Think I Must Be Going Crazy :-|

Post by Jaymer »

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.
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
hpl123
Posts: 2635
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

Re: I Think I Must Be Going Crazy :-|

Post by hpl123 »

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)
PointsWell
Posts: 1473
Joined: Tue Jan 24, 2017 5:51 am
Location: 'Stralya

Re: I Think I Must Be Going Crazy :-|

Post by PointsWell »

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
RLJB
Posts: 919
Joined: Tue Jan 05, 2010 10:16 am
Location: Sydney, Australia

Re: I Think I Must Be Going Crazy :-|

Post by RLJB »

I just wanted to add... you probably are going crazy regardless of the answer to this question :roll:
Rod. Aware V9 (latest build), Developer Edition, on OS Linux (Ubuntu) using GUI hosted on AWS EC2, MYSQL on AWS RDS
Post Reply