[JEXL] How to set an empty string array property value?

2013-10-31 Thread Woonsan Ko
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

Re: [JEXL] How to set an empty string array property value?

2013-11-01 Thread Woonsan Ko
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

Re: scxml: planning and versions

2014-04-15 Thread Woonsan Ko
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

Re: SCXML2 Serialization

2014-04-16 Thread Woonsan Ko
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

Re: SCXML2 Serialization

2014-04-16 Thread Woonsan Ko
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

[vfs] Outdated filesystem capability info in site?

2014-05-01 Thread Woonsan Ko
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]

Re: [vfs] Outdated filesystem capability info in site?

2014-05-02 Thread Woonsan Ko
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

Re: our project setup: any tips specifically on performance/speed?

2014-05-16 Thread Woonsan Ko
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

Re: [scxml] Re: our project setup: any tips specifically on performance/speed?

2014-06-07 Thread Woonsan Ko
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

Re: [SCXML] mapping of data types used to store values of datamodel with the java datatypes

2014-07-19 Thread Woonsan Ko
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

Re: [scxml] passing datamodel elements into method call

2014-10-06 Thread Woonsan Ko
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

Re: Re: [scxml] passing datamodel elements into method call

2014-10-08 Thread Woonsan Ko
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

Re: [scxml] bug with script in combination of a chain of transitions

2015-05-05 Thread Woonsan Ko
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

Re: [lang] StrSubstitutor - a dollar sign before a variable

2015-07-23 Thread Woonsan Ko
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

Re: [lang] StrSubstitutor - a dollar sign before a variable

2015-07-23 Thread Woonsan Ko
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

Re: [lang] StrSubstitutor - a dollar sign before a variable

2015-07-23 Thread Woonsan Ko
, 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

Re: [lang] StrSubstitutor - a dollar sign before a variable

2015-07-23 Thread Woonsan Ko
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

[lang] StrSubstitutor - a dollar sign before a variable

2015-07-22 Thread Woonsan Ko
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() {

Re: SCXML and Script and context access

2015-08-31 Thread Woonsan Ko
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 > >

Re: [SCXML] Timers in SCXML

2015-09-05 Thread Woonsan Ko
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

Re: Commons Lang substitution

2015-11-17 Thread Woonsan Ko
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, "$", ""); //

Re: scxml: nested custom actions

2016-03-24 Thread Woonsan Ko
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

Re: [exec] how to use watchdog / wrong javadoc

2016-04-26 Thread Woonsan Ko
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

Re: [exec] how to use watchdog / wrong javadoc

2016-04-26 Thread Woonsan Ko
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);

Re: [SCXML] How to obtain a collection of valid events

2016-05-23 Thread Woonsan Ko
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

Re: [SCXML] How to obtain a collection of valid events

2016-05-16 Thread Woonsan Ko
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.

Re: [SCXML] Next states

2016-05-06 Thread Woonsan Ko
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>

Re: [SCXML] Next states

2016-05-04 Thread Woonsan Ko
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

Re: [SCXML] Any release date

2016-05-04 Thread Woonsan Ko
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

Re: [SCXML] Question on Invoker Interface

2016-10-17 Thread Woonsan Ko
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

Re: [scxml] looking for developer for adaptations on Commons SCXML

2017-11-29 Thread Woonsan Ko
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

Re: [scxml] looking for developer for adaptations on Commons SCXML

2017-12-01 Thread Woonsan Ko
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

[JEXL] white list classes, not by interfaces?

2017-10-19 Thread Woonsan Ko
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

Re: [JEXL] white list classes, not by interfaces?

2018-01-25 Thread Woonsan Ko
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

Re: [SCXML] tag usage is giving location error

2019-03-01 Thread Woonsan Ko
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.

Re: [SCXML] Using to call a REST API

2019-03-11 Thread Woonsan Ko
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

Re: [SCXML] Problem with setting values in Context using 2.0-SNAPSHOT (works with 0.9)

2019-03-18 Thread Woonsan Ko
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 =

Re: [SCXML] Support for Commons JEXL in SCXML

2019-07-15 Thread Woonsan Ko
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]