hi
is there some way i can stop the process and return to my java code in the middle of the web-harvest xml?
for example, i m trying to log-in in to a site, and i check the result (the returned html). if it indicates that the login failed, i want to stop and return to the application.
thanks
yair
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ignore the previous message... this is what i mean:
hi,
I was trying to avoid the case-if tag...
It is just that when i write methods, i first like to check everything and throw exceptions/return if something is wrong, and not put the logic in an if-else block.:
wrong:
if (init condition is ok)
{
do logic
}
else
{
do something with the error
}
right:
if (init condition is not ok)
{
do something with the error
}
do logic
thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry for delayed response.
Again I'm not quite sure why IF-THEN logic is not good enough.
But never mind - you need something like <exit> to stop excution?
Vladimir.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hi,
I was trying to avoid the case-if tag...
It is just that when i write methods, i first like to check everything and throw exceptions/return if something is wrong, and not put the logic in an if-else block.:
wrong:
if (init condition is ok)
{
do logic
}
else
{
}
thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hi
is there some way i can stop the process and return to my java code in the middle of the web-harvest xml?
for example, i m trying to log-in in to a site, and i check the result (the returned html). if it indicates that the login failed, i want to stop and return to the application.
thanks
yair
Ignore the previous message... this is what i mean:
hi,
I was trying to avoid the case-if tag...
It is just that when i write methods, i first like to check everything and throw exceptions/return if something is wrong, and not put the logic in an if-else block.:
wrong:
if (init condition is ok)
{
do logic
}
else
{
do something with the error
}
right:
if (init condition is not ok)
{
do something with the error
}
do logic
thanks!
Sorry for delayed response.
Again I'm not quite sure why IF-THEN logic is not good enough.
But never mind - you need something like <exit> to stop excution?
Vladimir.
There is no construction in web-harvest to immidiately stop a config execution.
However you could use case-if structure to achive desired behaviour.
Regards, Vladimir.
hi,
I was trying to avoid the case-if tag...
It is just that when i write methods, i first like to check everything and throw exceptions/return if something is wrong, and not put the logic in an if-else block.:
wrong:
if (init condition is ok)
{
do logic
}
else
{
}
thanks!