Hi,
I'm testing with JEXL 2.1.2-SNAPSHOT (The 2.0 branch snapshot).
My bean has a property setter with string array.
public void setValues(String[] values) {
// ...
}
And, a JEXL script setting an empty array like the following seems to fail and
maybe it even fails to find the
the patches fix this issue. Please review them.
Cheers,
Woonsan
On Thursday, October 31, 2013 5:17 PM, Woonsan Ko woon_...@yahoo.com wrote:
Hi,
I'm testing with JEXL 2.1.2-SNAPSHOT (The 2.0 branch snapshot).
My bean has a property setter with string array.
public void setValues(String[] values
Hi Rinke,
Welcome! And that's great to hear about your project!
The roadmap is described here:
http://commons.apache.org/proper/commons-scxml/roadmap.htmlI would recommend
you to use 2.0-M1 instead because the milestones (M0 and M1) were actually done
based on the J6 branch and included proper
Hi Francis,
I think the best practices are to serialize either o.a.c.s.SCXMLExecutor [1] or
o.a.c.s.model.SCXML instances. Both cases are well-maintained in test code. [2]
In your case, you can probably (de)serialize SCXMLExecutor instance directly to
store/load the execution context.
Also, as
On Wednesday, April 16, 2014 9:57 AM, Ate Douma a...@douma.nu wrote:
Hi Woonsan,
On 16-04-14 15:49, Woonsan Ko wrote:
Hi Francis,
I think the best practices are to serialize either o.a.c.s.SCXMLExecutor [1]
or o.a.c.s.model.SCXML instances. Both cases are well-maintained in test
code
Hi,
I'm working with ftp file system (VFS 2.0) and it seems working fine when
listing children.
But the page [1] says it doesn't support 'Directory Content' capability yet.
Is the information (also on sftp and some others) outdated?
Regards,
Woonsan
[1]
at the trunk and speak up on showstoppers.
Gruss
Bernd
Am Thu, 1 May
2014 17:54:28 -0700 (PDT) schrieb Woonsan Ko woon_...@yahoo.com:
Hi,
I'm working with ftp file system (VFS 2.0) and it seems working fine
when listing children. But the page [1] says it doesn't support
'Directory
Hi Rinke,
I think you can measure a rough range of how many times to invoke SCXMLExecutor
(#go(), #triggerEvent() for instance) in simulation on N instances. Then you'll
probably able to get an estimate of the total execution time somehow.
If the estimate of the pure SCXML executions can
Hi Rinke,
On Friday, May 30, 2014 4:46 PM, R.C. Hoekstra r.c.hoeks...@erasmusmc.nl
wrote:
Hi Woonsan, Hi Ate,
(sorry for the late response)
Woonsan wrote:
If the estimate of the pure SCXML executions can possibly meet your
requirements, then I think
the next thing to consider might
On Wednesday, July 16, 2014 10:02 AM, anshul gangwar
anshul.mit20...@gmail.com wrote:
Hi,
I have one query regarding datatypes used to store values of SCXM datamodel.
Suppose there is a string A = 1234567891. This variable is sent in
payload when event is fired and is assigned in the
Hi Rinke,
I think you would get a node if you used DataNode function instead:
cs:var name=treatment1Name
expr=DataNode(treatmentData,'treatments/treatment[1]/name') /
Could you try that?
Regards,
Woonsan
On Thursday, October 2, 2014 3:53 AM, R.C. Hoekstra r.c.hoeks...@erasmusmc.nl
Hi Rinke,
Sorry for my confusion. Indeed, DataNode function seems to exist only for
assign element.
Regarding other possible options, I think you can set a holder object (named
treatmentDataHolder for instance) in the root context before execution, and
you can invoke the holder's method to
Hi Rinke,
Did you run with commons-scxml2-2.0-SNAPSHOT?
I've tried to run the following similar to yours on latest revision, but the
result seems different from what you're seeing:
?xml version=1.0 ?
scxml xmlns=http://www.w3.org/2005/07/scxml;
version=1.0
datamodel=jexl
fox paid $20.00 to jump over
the lazy dog.;
replacedResult = sub.replace(replaceTemplate);
assertEquals(expectedResult, replacedResult);
}
Regards,
Anthony Brice
On Thu, Jul 23, 2015 at 7:42 AM, Woonsan Ko woon...@apache.org wrote:
Sorry, the example was incomplete
On Wed, Jul 22, 2015 at 2:50 PM, Woonsan Ko woon...@apache.org wrote:
Hi there,
I tried to use the following, expecting ...ick brown fox paid $20.00
to jump over the la…:
// In org.apache.commons.lang3.text.StrSubstitutorTest.java locally
// after cloning https://github.com/woonsan
, Jul 23, 2015 at 10:28 AM, Woonsan Ko woon...@apache.org wrote:
Hi Anthony,
Putting '$20.00' into the map is not an option in my use case, so I
tried to use a different escape character. But it doesn't seem to be
working either (another bug?):
@Test
public void
On Thu, Jul 23, 2015 at 4:21 AM, Jörg Schaible
joerg.schai...@swisspost.com wrote:
Hi Woonsan,
Woonsan Ko wrote:
Hi there,
I tried to use the following, expecting ...ick brown fox paid $20.00
to jump over the la…:
// In org.apache.commons.lang3.text.StrSubstitutorTest.java locally
Hi there,
I tried to use the following, expecting ...ick brown fox paid $20.00
to jump over the la…:
// In org.apache.commons.lang3.text.StrSubstitutorTest.java locally
// after cloning https://github.com/woonsan/commons-lang.
@Test
public void testReplaceEscapingDollarSign() {
On Tue, Aug 18, 2015 at 6:27 AM, Sinisa Zec wrote:
> Dears,
>
>
>
> We are using Apache SCXML2 for the project which is based on FSM logic. I am
> trying for some time to achieve the following:
>
>
>
> 1.Set some variables in (Groovy)context from Java – X set of variables
>
>
Hi,
Which version of SCXML are you using? If you used a version older than
2.0-SNAPSHOT (sorry, 2.0 is still not released yet), could you try
with 2.0-SNAPSHOT by building locally by yourself from [1]?
Also, I wonder if you had a chance to follow Rahul's advice in the old
thread? I think he
I think Jörg is right.
You may change the suffix StrMather through
#setVariableSuffixMatcher() on a StrSubstitutor.
I haven't tried it, but it should be something like this example:
final Map valueMap = ...;
StrSubstitutor subst = new StrSubstitutor(valuesMap, "$", ""); //
Hi Rinke / Ate,
It looks like it has been changed as of SCXML-213 [1] with commit
eba2b2899787ef0476c1dd8852aba5b0adb4f5f3.
SCXMLReader#readCustomAction() seems to ignore the possibility of
nested custom actions by invoking #skipToEndElement(reader).
@Ate, is it probably a regression? (custom
com> wrote:
> Woonsan,
>
> Would you mind updating the Javadoc?
>
> Thank you,
> Gary
> On Apr 26, 2016 1:32 PM, "Woonsan Ko" <woon...@apache.org> wrote:
>
>> The javadoc seems to have outdated info. It should have been like the
>> following:
&g
The javadoc seems to have outdated info. It should have been like the following:
ExecuteWatchdog watchdog = new ExecuteWatchdog(3);
Executor exec = new DefaultExecutor();
exec.setStreamHandler(myStreamHandler);
exec.setWatchdog(watchdog);
int exitvalue = exec.execute(mycmdline);
n an event. It doesn't sound like an error to
me, but maybe a warning in that case.
What do others think?
Regards,
Woonsan
>
> Thank you
>
>
> On Mon, May 16, 2016 at 10:04 AM, Woonsan Ko <woon...@apache.org> wrote:
>> Hi Mansour,
>>
>> I don't see any
Hi Mansour,
I don't see any convenient method to easily figure out what are
available event names for transitions like your use case needs.
All the knowledge about that is encapsulated in
org.apache.commons.scxml2.semantics.SCXMLSemanticsImpl internally, so
you might want to take a look at it.
MLExecutor#getStatus(), Status#getStates()
and Status#getActiveStates() to figure out which state you need to get
in your implementation. Please see each javadoc description.
Regards,
Woonsan
> Thank you
>
>
> On Wed, May 4, 2016 at 11:58 AM, Woonsan Ko <woon...@apache.org>
Not sure about the use case, but maybe you can add a listener
(AbstractStateMachine#getEngine()#addListener(stateMachine, new
MyListener())).
If you get a TransitionalState in your listener, you may possibly get
all the available Transitions and TransitionTargets.
Regards,
Woonsan
On Sun, May
Hi Mansour,
Sorry for late response.
There are some (radical) changes needed for 2.0, so it's getting
delayed. You can find more detail from Ate's message:
- http://markmail.org/thread/bb4ihxzhtprv675c
Regards,
Woonsan
On Sat, Apr 30, 2016 at 7:40 PM, Mansour Al Akeel
Please do not cross post a message and it is better to direct your
comments to the list in general. See more tips here:
http://www.apache.org/dev/contrib-email-tips
On Thu, Oct 13, 2016 at 6:09 PM, Prathib Kumar wrote:
> Hi Woonsan,
>
> As you have suggested I have picked
On Wed, Nov 29, 2017 at 6:56 AM, r.c.hoekstra wrote:
> Hi List,
>
> We are working at the ErasmusMC hospital at Rotterdam, Netherlands, on
> scientific simulations on the spread of infectious diseases through human
> populations.
> In this project we use Apache Commons
Hi Rinke,
Thanks a lot for the info! Please see my comments inline.
On Thu, Nov 30, 2017 at 4:50 AM, r.c.hoekstra <r.c.hoeks...@scarlet.nl> wrote:
> On 30-11-17 01:49, Woonsan Ko wrote:
>
> Hi Woonsan,
>
> I'll go through your comments in the text below.
>
>> O
Hi,
I'm experimenting it with JexlSandbox (for blackbox mode) of v3.1 like
the following example:
JexlSandbox sandbox = new JexlSandbox(false);
sandbox.white(IFoo.class.getName());
// ...
JexlEngine engine = new JexlBuilder().sandbox(sandbox).create();
But if I put an instance
I've created a ticket for this:
- https://issues.apache.org/jira/browse/JEXL-253
Cheers,
Woonsan
On Thu, Oct 19, 2017 at 10:09 AM, Woonsan Ko <woon...@apache.org> wrote:
> Hi,
>
> I'm experimenting it with JexlSandbox (for blackbox mode) of v3.1 like
> the
Hi Diptendu,
Hmm... I think I stepped off on the wrong foot, and you're right: It
seems failing with 2.0-M1 tag.
When I execute the same thing [1] with the latest master branch
(2.0-SNAPSHOT), it works fine.
So, I assume it was fixed intentionally or it just cannot occur any
more as of SCXML-243.
Hi Diptendu,
On Mon, Mar 11, 2019 at 2:06 AM Diptendu Dutta wrote:
>
> Is it possible to use the tag to call a REST API?
Possible.
>
> How would one specify the various attributes such as method (GET/POST),
> headers, body, etc.?
You can pass any data in to the target, and your
Hi Diptendu,
Please see my comments inline.
On Sat, Mar 16, 2019 at 8:19 AM Diptendu Dutta wrote:
>
> I have the following code that is working in 0.9 but failing in 2.0-SNAPSHOT
> .
>
> SCXMLExecutor engine;
> Context rootContext;
> Evaluator evaluator;
>
> .
> rootContext =
Hi Diptendu,
I don't think the 'target' attribute is meant to be used with
expressional values. [1]
I guess you might want to try with transition elements with cond
attribute, which is expressional [1], instead.
For example,
Regards,
Woonsan
[1]
38 matches
Mail list logo