Daily Log for #alfresco IRC Channel

Alfresco discussion and collaboration. Stick around a few hours after asking a question.

Official support for Enterprise subscribers: support.alfresco.com.

Joining the Channel:

Join in the conversation by getting an IRC client and connecting to #alfresco at Freenode. Our you can use the IRC web chat.

More information about the channel is in the wiki.

Getting Help

More help is available in this list of resources.

Daily Log for #alfresco

2017-03-21 07:47:54 GMT <DarkStar1> Morning everyone

2017-03-21 08:40:16 GMT <yreg> Morning everyone !

2017-03-21 08:40:25 GMT <yreg> Morning Lanre!

2017-03-21 09:26:33 GMT <yreg> ~later tell resplin can you please tell the guys from marketing that there is no need for re-branding the products every year or two in order to get best of SEO. People are getting confused about the naming changes and there is definitely better ways to boost SEA other than unique wording

2017-03-21 09:26:33 GMT <alfbot> yreg: The operation succeeded.

2017-03-21 09:31:00 GMT <magp> bhagyas: Did you solve that issue you mentioned yesterday with share error messages? I just ran into the same issue :)

2017-03-21 09:31:41 GMT <bhagyas> magp: :D no, gave up

2017-03-21 09:31:57 GMT <bhagyas> yreg: what was it this time :p

2017-03-21 09:32:26 GMT <bhagyas> I'm not sure how South East Asia gets a boost from rebranding though ;p

2017-03-21 09:33:22 GMT <magp> damn :/

2017-03-21 09:33:34 GMT <bhagyas> magp: I found that retryingtransacitonhelper provided a static method to extract the actual cause for exceptions thrown within a transaction

2017-03-21 09:33:51 GMT <bhagyas> but the code seems pretty hacky

2017-03-21 09:35:03 GMT <bhagyas> what yreg said seems to be a good option if you don't wrap your things within a transaction

2017-03-21 09:35:11 GMT <bhagyas> okay, that sounded a bit awkward

2017-03-21 09:35:18 GMT <bhagyas> but things meant execution logic

2017-03-21 09:37:38 GMT <magp> :P

2017-03-21 09:37:53 GMT <magp> using an interceptor in combination with the behaviour?

2017-03-21 09:40:54 GMT <bhagyas> yeah, and that decoding using the first few digits in the error message on the client end

2017-03-21 09:41:40 GMT <bhagyas> (which won't happen unless your logic lives outside of a transaction or the throwable transaction exception is unwrapped)

2017-03-21 09:47:18 GMT <yreg> bhagyas, what ?

2017-03-21 10:06:15 GMT <LMattioli> yreg: I agree with you. Rebranding is confusing even for me... and I've always have to bother to explain to my contacts the different meanings of the word "Enterprise" during the last 5 years... I hope this brand, license versions and prices will remain quite stable for the next 5 years

2017-03-21 10:25:29 GMT <yreg> ~later tell angelborroy are you still trying to find a laptop with more RAM ? check out this one : http://www.ldlc.be/fiche/PB00224744.html

2017-03-21 10:25:29 GMT <alfbot> yreg: The operation succeeded.

2017-03-21 10:28:52 GMT <yreg> ~later tell angelborroy these two may present cheaper alternatives : http://www.ldlc.be/fiche/PB00221449.html & http://www.ldlc.be/fiche/PB00224697.html

2017-03-21 10:28:52 GMT <alfbot> yreg: The operation succeeded.

2017-03-21 10:58:40 GMT <mbui> Hey, anyone got experience with importing data (such as xls) into a datalist, i.e. creating nodes for each data row? Any general tool out there?

2017-03-21 11:12:06 GMT <yreg> there is share import/export tool relying on json objects

2017-03-21 11:12:52 GMT <yreg> I bet you can either tweak that tool a bit, or tweak your file format (xls 2 json) and use it ;-)

2017-03-21 11:14:22 GMT <AFaust> I would bet export to CSV and reading CSV would be the easiest in terms of supporting simple list formats. JSON is only really useful if you have complex entities

2017-03-21 11:14:51 GMT <yreg> mbui, https://github.com/wabson/share-import-export

2017-03-21 11:14:52 GMT <alfbot> Title: GitHub - wabson/share-import-export: A collection of Python scripts which can be used to import and export sites and users from Alfresco Share. (at github.com)

2017-03-21 11:16:13 GMT <yreg> mbui create a dummy site with some data lists and items, export it and examine the content of the export, then make sure to convert your xls file to correspond to the format exported, and import it ;-)

2017-03-21 11:30:41 GMT <mbui> yreg: Thanks, i'll take a look at it :)

2017-03-21 12:02:53 GMT <alfbot> angelborroy: Sent 1 hour and 37 minutes ago: <yreg> are you still trying to find a laptop with more RAM ? check out this one : http://www.ldlc.be/fiche/PB00224744.html

2017-03-21 12:02:54 GMT <alfbot> angelborroy: Sent 1 hour and 34 minutes ago: <yreg> these two may present cheaper alternatives : http://www.ldlc.be/fiche/PB00221449.html & http://www.ldlc.be/fiche/PB00224697.html

2017-03-21 12:04:57 GMT <angelborroy> yreg thanks for the info

2017-03-21 12:05:31 GMT <angelborroy> yreg this is not enough expensive for Apple users, can’t you find any other with gold or so? :D

2017-03-21 12:14:03 GMT <yreg> angelborroy, <grin>

2017-03-21 12:34:14 GMT <DarkStar1> yreg: Do you own one of those laptops?

2017-03-21 12:34:43 GMT <douglascrp> morning guys

2017-03-21 12:35:16 GMT <DarkStar1> o/ douglascrp Good time-of-day to you too

2017-03-21 12:35:50 GMT <yreg> DarkStar1, not even close :-P

2017-03-21 12:36:27 GMT <yreg> The one I have at work is Dell with 16Gb of RAM, 256 Gb SSD 1Tb sshd

2017-03-21 12:36:55 GMT <angelborroy> yreg and Windows 10! :-P

2017-03-21 12:37:27 GMT <bhagyas> angelborroy: The Apple Online Store is down, there might be a spec upgrade on some stuff

2017-03-21 12:38:21 GMT <yreg> and my personal laptop is a Thinkpad x220T with 16Gb RAM, 256Gb ssd, a GPS sensor, convertible screen, and a lot of other unecessary addons.. bought back in 2011 for ~1700 CHF

2017-03-21 12:38:22 GMT <DarkStar1> Don't think you're going to get more than 16Gb RAM max, from apple

2017-03-21 12:38:43 GMT <yreg> angelborroy, switched to Elementary OS 0.4 quite a long time ago !

2017-03-21 12:38:43 GMT <bhagyas> DarkStar1: Let me see my specs

2017-03-21 12:38:58 GMT <bhagyas> DarkStar1: 16 GB 2133 MHz LPDDR3

2017-03-21 12:39:02 GMT <angelborroy> yreg why Elementary instead of Ubuntu?

2017-03-21 12:39:05 GMT <bhagyas> :D

2017-03-21 12:39:18 GMT <yreg> I do not like Unity

2017-03-21 12:39:35 GMT <yreg> and I like to chose what utilities to install

2017-03-21 12:39:44 GMT <yreg> plus elementary has a cool UI

2017-03-21 12:40:34 GMT <angelborroy> which is the more similar Mac flavour in Linux

2017-03-21 12:40:45 GMT <yreg> So basically I got a lightweight Ubuntu a bit different (cooler) UI experience

2017-03-21 12:41:12 GMT <angelborroy> you are going to be a switcher, believe me ;-)

2017-03-21 12:41:36 GMT <bhagyas> yreg: you have never used a mac?

2017-03-21 12:41:43 GMT <bhagyas> angelborroy: +1

2017-03-21 12:41:44 GMT <bhagyas> :D

2017-03-21 12:41:52 GMT <yreg> angelborroy, indeed Mac is just out of budget I suppose, I used a MacbookAir a while back and the UX was simply amazing, I just can not afford it currently

2017-03-21 12:42:28 GMT <yreg> but would definitely would go for a MAC if I can chose what hardware to get at work

2017-03-21 12:42:55 GMT <yreg> (the whole team is either on Dell XPS or Dell Latitude) around here

2017-03-21 12:44:12 GMT <bhagyas> yreg: Macs cost lesser in the longer run

2017-03-21 12:44:24 GMT <yreg> bhagyas, for me it is mainly a budget issue

2017-03-21 12:44:42 GMT <angelborroy> dell xps is about 1,900 €

2017-03-21 12:44:49 GMT <bhagyas> yreg: For personal computing I'm moving to a Raspberry Pi ;p

2017-03-21 12:44:56 GMT <angelborroy> you have a MacBook PRO with better specs for 2,000

2017-03-21 12:45:04 GMT <bhagyas> angelborroy: exactly!

2017-03-21 12:45:08 GMT <angelborroy> (without that stupid bar, of course)

2017-03-21 12:45:14 GMT <yreg> bhagyas, my Thinkpad has actually pretty decent performance for its age, I would even safely go and say it is better the current midrange laptops

2017-03-21 12:45:16 GMT <bhagyas> angelborroy: blasphemy!

2017-03-21 12:45:28 GMT <bhagyas> yreg: I had a thinkpad before I got a mac

2017-03-21 12:45:37 GMT <bhagyas> T520, the IIS edition ;)

2017-03-21 12:46:08 GMT <bhagyas> that's one beautiful rugged machine when you run ubuntu on it :D

2017-03-21 12:47:00 GMT <yreg> bhagyas, my Thinkpad seems to have free fall/shock detection system with airbags around its m2 sata ssd, I bet no mac has that <grin>

2017-03-21 12:47:01 GMT <bhagyas> putting Windows on a Thinkpad is like painting a Ferrari with a paintbrush

2017-03-21 12:47:12 GMT <bhagyas> yreg: yeah, most Thinkpads have that

2017-03-21 12:47:16 GMT <bhagyas> Macs don't need that

2017-03-21 12:47:20 GMT <bhagyas> We have AppleCare

2017-03-21 12:47:21 GMT <bhagyas> :D

2017-03-21 12:47:28 GMT <bhagyas> We get a new Mac if something happens

2017-03-21 12:47:28 GMT <bhagyas> lol

2017-03-21 12:47:41 GMT <yreg> does apple care cover data los ?

2017-03-21 12:47:46 GMT <yreg> loss*

2017-03-21 12:47:50 GMT <bhagyas> yreg: we have backups in place

2017-03-21 12:48:25 GMT <bhagyas> with Time Capsule and other means of course, also all the source code is hosted and mails are on cloud

2017-03-21 12:50:21 GMT <bhagyas> -= THIS MESSAGE NOT LOGGED =-

2017-03-21 13:14:29 GMT <resplin> yreg: I agree that it feels like we just adopted the "Alfresco One" name, but it was actually in 2013.

2017-03-21 13:14:29 GMT <alfbot> resplin: Sent 3 hours and 47 minutes ago: <yreg> can you please tell the guys from marketing that there is no need for re-branding the products every year or two in order to get best of SEO. People are getting confused about the naming changes and there is definitely better ways to boost SEA other than unique wording

2017-03-21 13:15:05 GMT <resplin> I would normally agree that product renaming creates confusion, but I have always disliked the Alfresco One name because I find it confusing. I much prefer the "Alfresco Content Services" name.

2017-03-21 13:19:38 GMT <yreg> resplin, well that's one way for looking at it, I do not even think there was ever a real need for switching to something different than Alfresco EE

2017-03-21 13:20:29 GMT <yreg> any way, I just hope this name would stick at least for the next decade :)

2017-03-21 13:31:45 GMT <resplin> I have always found it confusing that the name of the product is the same as the name of the company, especially as we expand what the company does.

2017-03-21 13:31:54 GMT <resplin> I am glad that we are decoupling them.

2017-03-21 13:32:06 GMT <resplin> I hope the name Alfresco Content Services sticks a long time

2017-03-21 13:32:19 GMT <resplin> But I would like us to rename Alfresco Community Edition to have a completely different name.

2017-03-21 13:32:22 GMT <AFaust> resplin: Hope Alfresco doesn't shy away from using the acronyms for products as well, starting with ASS.

2017-03-21 13:32:34 GMT <resplin> Like Activiti is different from Alfresco Process Services.

2017-03-21 13:32:45 GMT <resplin> With separate branding that the open source community can use without worries from our legal team.

2017-03-21 13:32:51 GMT <resplin> AFaust: Alfresco Search Services!

2017-03-21 13:33:17 GMT <resplin> Peter Monks tried to get us to adopt it for years, and now that he isn't lobbying for it, we went and did it!

2017-03-21 13:35:20 GMT <AFaust> Hmm - ALS for Community might potentially fit. Alfresco Limited Services...

2017-03-21 13:36:13 GMT <AFaust> AOS (Alfresco Open Services) would be ambigious...

2017-03-21 13:37:11 GMT <mbui> I'm attending to beecon this year, i'm thinking of participating in this hackathon. Anything I should do to come prepared? What's the "target participant" for this hackathon?

2017-03-21 13:39:23 GMT <AFaust> mbui: Did you read the blog post on community.alfresco.com?

2017-03-21 13:39:44 GMT <AFaust> https://community.alfresco.com/groups/beecon-2017/blog/2017/03/09/beecon-hack-a-thon

2017-03-21 13:39:45 GMT <alfbot> Title: BeeCon hack-a-thon | Alfresco Community (at community.alfresco.com)

2017-03-21 13:41:18 GMT <AFaust> Anyone that registers for the hack-a-thon will also get a more detailed mail the week before the conference for any housekeeping / preparation that is recommended to be done so you can use the most time for working on the projects instead of trying to setup the environment etc.

2017-03-21 13:48:43 GMT <mbui> Ah sweet, thanks

2017-03-21 14:06:09 GMT <mbui> AFaust: Asfaik, this information about the hack-a-thon is not presented anywhere when registred/buying a beecon ticket? I might have missed it somewhere though..

2017-03-21 14:09:44 GMT <AFaust> You are right - it is currently not linked on beecon.buzz. I will see if that is something I can add this evening

2017-03-21 14:37:59 GMT <yreg> It is normal that when a request timeouts the transaction fails when trying to commit ?

2017-03-21 14:43:44 GMT <resplin> Are you using the RetryingTransactionHelper?

2017-03-21 14:44:56 GMT <yreg> resplin, probably, I am using JSConsole

2017-03-21 14:48:29 GMT <AFaust> yreg: The transaction should not fail just because the request timed out on the client

2017-03-21 14:49:15 GMT <yreg> AFaust, I couldn't find any other trace in my logs

2017-03-21 14:49:17 GMT <AFaust> I.e. for JavaScript Console that uses the Share proxy for Alfresco the proxy will cause a timeout after 90s but the script continues and can complete successfully (unless there are other errors)

2017-03-21 14:50:01 GMT <AFaust> And for the JavaScript Console I have explicitly added a feature quite a long time ago to display output / result data for scripts that run longer than the configured Share timeout...

2017-03-21 14:50:27 GMT <AFaust> I know that this is not a problem since I regularly have scripts running longer than the timeout

2017-03-21 14:50:33 GMT <yreg> YEs, I noticed that !

2017-03-21 14:51:09 GMT <yreg> but with this one I am a little bit confused, any way, will continue to digg this up and keep you posted

2017-03-21 14:52:10 GMT <AFaust> And JavaScript Console is using a RetryingTransactionHelper internally if scripts are to be run inside a transaction (default)

2017-03-21 14:52:32 GMT <AFaust> So any issues that are presumed to be temporary will cause a retry up to 40 times...

2017-03-21 15:01:37 GMT <yreg> AFaust, why did you have it return the whole output ?

2017-03-21 15:01:50 GMT <yreg> isn't a differential output enough ?

2017-03-21 15:05:51 GMT <AFaust> Only if you can guarantee / be sure that any previous output has been successfully received / rendered.

2017-03-21 15:06:48 GMT <AFaust> Also - this allows me to deal with retries - the output cache is completely reset upon retry and when the UI fetches the next chunk of data I don't have to check if there has been a retry or not - the output simply only contains the output from the current attempt

2017-03-21 15:10:47 GMT <bhagyas> http://programmer.97things.oreilly.com/wiki/index.php/Don%27t_Ignore_that_Error%21

2017-03-21 15:10:48 GMT <alfbot> Title: Don't Ignore that Error! - Programmer 97-things (at programmer.97things.oreilly.com)

2017-03-21 15:11:21 GMT <bhagyas> Interesting reading for anyone who wants to up the game: http://programmer.97things.oreilly.com/wiki/index.php/Contributions_Appearing_in_the_Book

2017-03-21 15:11:22 GMT <alfbot> Title: Contributions Appearing in the Book - Programmer 97-things (at programmer.97things.oreilly.com)

2017-03-21 15:11:48 GMT <yreg> AxelFaust, here is my output: http://pastebin.com/17t6xzEr

2017-03-21 15:11:49 GMT <alfbot> Title: [Bash] 2017-03-21 16:09:11,860 INFO [org.alfresco.repo.jscript.ScriptLogger] [http-a - Pastebin.com (at pastebin.com)

2017-03-21 15:14:01 GMT <AxelFaust> yreg: Did you cut off the stacktrace or was it already presented that way? There is a simple NPE at the bottom of the stack

2017-03-21 15:14:32 GMT <AxelFaust> And without knowing the line that occurs on you will not be able to pinpoint the cause.

2017-03-21 15:15:29 GMT <yreg> There is nothing interesting after it

2017-03-21 15:15:56 GMT <yreg> well it is saying that it is redirecting to status template error

2017-03-21 15:16:00 GMT <AxelFaust> "Nothing" or "Nothing interesting"?

2017-03-21 15:16:05 GMT <yreg> and the the transaction retries

2017-03-21 15:16:10 GMT <AxelFaust> But no further stacktrace?

2017-03-21 15:16:14 GMT <yreg> nope

2017-03-21 15:16:20 GMT <AxelFaust> That is too bad.

2017-03-21 15:16:23 GMT <yreg> AxelFaust, as I said nothing interesting

2017-03-21 15:16:52 GMT <AxelFaust> There is likely a NPE in some custom code that runs before the transaction commits that lets it fail...

2017-03-21 15:16:59 GMT <yreg> but I only set debug log level on retrytransactionhelper

2017-03-21 15:17:14 GMT <yreg> is ther an other place I can set more logs tyo get more trace ?

2017-03-21 15:17:43 GMT <yreg> AxelFaust, Do you want me to share the JS snippet ?

2017-03-21 15:18:35 GMT <yreg> I am just querying some sites, and adding some property (+Aspect) based on site preset

2017-03-21 15:19:29 GMT <AxelFaust> If you can share, please do... But that will probably not show us the cause of the issue because it is something that only fires on transaction commit...

2017-03-21 15:20:22 GMT <kryptynasium> I would like to access the variables that I have defined in the activiti-cfg.xml file in my BPMN XML - since I am getting an error - variable of such name cannot be resolved. I am trying to dynamically make gateway branching decision based on a value of some variable

2017-03-21 15:21:39 GMT <yreg> AxelFaust, http://pastebin.com/zdsMPWJj

2017-03-21 15:21:40 GMT <alfbot> Title: [JavaScript] var pageSize = 200; var paging = { maxItems: pageSize, skipCount: 0 - Pastebin.com (at pastebin.com)

2017-03-21 15:22:44 GMT <yreg> AxelFaust, I am doubting that there is some handled exception that is occuring on the JS API level, causing the transaction to be marked for rollback

2017-03-21 15:23:41 GMT <kryptynasium> This question is related to Activiti - can we possible do this?

2017-03-21 15:25:55 GMT <AxelFaust> yreg: Why are you querying by PATH instead of just looking for TYPE:"st:site"? That way you can have transactionally safe queries instead of forcing SOLR queries...

2017-03-21 15:26:27 GMT <AxelFaust> But yes - as I said, nothing in the query (or the JS layer) should cause an exception during txn commit.

2017-03-21 15:26:48 GMT <AxelFaust> Since you are adding aspects there might be behaviours bound to these aspects that get triggered...

2017-03-21 15:28:48 GMT <yreg> AxelFaust, For some reason, some of the sites are of type cm:folder on this instance and do not ask me why

2017-03-21 15:30:15 GMT <yreg> Well, there might be few policies on this system, I will see if any of them could constitute a problem

2017-03-21 15:30:48 GMT <AxelFaust> Also TransactionListener instances.

2017-03-21 15:31:13 GMT <AxelFaust> A ON_COMMIT behaviour should cause a different type of error since the behaviour queue is catching any runtime errors

2017-03-21 15:32:42 GMT <yreg> AxelFaust, I do not need transactional consistency and this is a test instance, so I will probably simply run this without a transaction and see what I get, otherwise, will check Policies

2017-03-21 15:33:44 GMT <yreg> That was not a good idea <grin>

2017-03-21 15:33:50 GMT <AxelFaust> Instead of doing a big, large while-loop, why not have the JavaScript Console execute the script multiple times in certain intervals (runLikeCrazy feature)?

2017-03-21 15:34:24 GMT <AxelFaust> Print out the number of nodes you modified and once you reached 0 you can disable the runLikeCrazy feature

2017-03-21 15:34:41 GMT <yreg> solr is indexing every minute and now paging logic does not seem working as expected

2017-03-21 15:35:43 GMT <AxelFaust> And regarding your PATH query - you know you can simply use PARENT:"nodeRefOfSitesFolder" and it will be able to use DB queries, right?

2017-03-21 15:35:45 GMT <yreg> will probably need to rely on node dbid + node dbid ordering to make sure no nodes are skipped

2017-03-21 15:36:46 GMT <AxelFaust> You wouldn't need to page really if you were using transactional queries - repeatedly just retrieve the first page, apply the aspect and repeat until the first page is empty...

2017-03-21 15:36:58 GMT <yreg> well that's something I just learnt, but still, will stick to my pathed query as it does not seem to take long and I will have to run this agains multiple environments

2017-03-21 15:37:48 GMT <yreg> AxelFaust, well in that case, I will give it run with the PARENT:"noderef"

2017-03-21 15:41:29 GMT <yreg> AxelFaust, I think you are mistakingly attributing my request's timeout to the crappy perfs of path queries

2017-03-21 15:41:50 GMT <yreg> well in this particular case, I am processing ~11k sites <grin>

2017-03-21 15:42:14 GMT <AxelFaust> No, I am not. I just can't stand seeing PATH queries for something that should be done with transactional queries...

2017-03-21 15:42:59 GMT <AxelFaust> Better yet, I can't stand seeing PATH queries at all. I find them to be a "barbaric" approach to searching for structured content items...

2017-03-21 15:43:20 GMT <yreg> AxelFaust, I am now getting the sites folder using js api and using that as parent for MTQ

2017-03-21 15:43:50 GMT <AxelFaust> And if you are processing 11k sites you should definitely not process them in one big while-loop

2017-03-21 15:44:38 GMT <AxelFaust> Transactions should be kept to a reasonable size - 100-1000 nodes affected at most...

2017-03-21 15:44:48 GMT <AxelFaust> (if possible)

2017-03-21 15:47:41 GMT <yreg> We have actually done some benchmark around that and came up with a conclusion that for best performance we should be processing 200-250 nodes per transaction

2017-03-21 15:49:17 GMT <AxelFaust> As always it depends on what kind of changes are performed, but that number fits nicely in the range...

2017-03-21 15:53:42 GMT <yreg> AxelFaust, Now that I am using MTQ I get way worse performance <grin> the MS SQL Effect :-D

2017-03-21 15:55:47 GMT <AxelFaust> Yes - MS SQL and probably the "insufficient index / statistics" effect

2017-03-21 15:58:15 GMT <yreg> We just updated statistics on the whole DB a couple of weeks back

2017-03-21 15:58:16 GMT <kryptynasium> I would like to access the variables that I have defined in the activiti-cfg.xml file in my BPMN XML - since I am getting an error - variable of such name cannot be resolved. I am trying to dynamically make gateway branching decision based on a value of some variable AxelFaust

2017-03-21 15:58:54 GMT <kryptynasium> AxelFaust: would you know how to bring these 2 XML files to understand the other's variable declaration?

2017-03-21 16:00:15 GMT <AxelFaust> yreg: Just "updating the statistics" is not sufficient sometimes, especially if you have such hotspots. Often is is a question of statistic targets / sample rates, and even special indices for common query cases...

2017-03-21 16:01:21 GMT <AxelFaust> kryptynasium: I am blissfully unaware of any variables defined in an activiti-cfg.xml file. If that relates to the Alfresco Activiti product, I can say that I am very happy I have been able to avoid that so far...

2017-03-21 16:03:51 GMT <kryptynasium> AxelFaust: that's awesome _ I also never found a need for that - just came across in the Activit documentation. So this is my real question:

2017-03-21 16:04:06 GMT <kryptynasium> In the BPMN we define gateway variables like this:

2017-03-21 16:04:07 GMT <kryptynasium> <exclusiveGateway id="exclusiveGw" name="Exclusive Gateway" /> <sequenceFlow id="flow2" sourceRef="exclusiveGw" targetRef="theTask1"> <conditionExpression xsi:type="tFormalExpression">${input == 1}</conditionExpression> </sequenceFlow>

2017-03-21 16:04:32 GMT <kryptynasium> Where input is the name of the variable - hardcoded to 1 - what I am trying to do is load the value from a Java task

2017-03-21 16:05:05 GMT <kryptynasium> But having issues - since the BPMN fails to resolve my Java declared variable name - giving me an XML parsing exception

2017-03-21 16:05:25 GMT <kryptynasium> I know it looks like something simple - I might be missing a small gap in my understanding

2017-03-21 16:07:39 GMT <angelborroy> kryptynasium how are you setting the variable?

2017-03-21 16:07:51 GMT <angelborroy> delegateTask.setVariable(…) ?

2017-03-21 16:07:58 GMT <AxelFaust> What do you refer to with "Java declared variable name"? Some code that sets a variable in a variable scope (task / execution) or really just the name of a variable in Java?

2017-03-21 16:08:26 GMT <AxelFaust> angelborroy was faster (as always by using a shorter question)

2017-03-21 16:08:45 GMT <angelborroy> but only because my English is worse than yours :)

2017-03-21 16:09:50 GMT <kryptynasium> I do it this way: input=${queryBean.isQueryResult() == true}

2017-03-21 16:10:04 GMT <kryptynasium> I guess this is some Expression Language by Activiti

2017-03-21 16:10:13 GMT <kryptynasium> And this is how I declare the variable:

2017-03-21 16:10:44 GMT <kryptynasium> <?xml version="1.0" encoding="UTF-8"?>

2017-03-21 16:10:56 GMT <kryptynasium> <beans xmlns="http://www.springframework.org/schema/beans"

2017-03-21 16:11:05 GMT <kryptynasium> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

2017-03-21 16:11:17 GMT <angelborroy> kryptynasium, stop please

2017-03-21 16:11:24 GMT <angelborroy> you can use pastebin or so to include source code

2017-03-21 16:11:26 GMT <kryptynasium> <bean id="queryBean" class="com.mysite.beans.QueryProcessBean" />

2017-03-21 16:12:11 GMT <kryptynasium> angelborroy: I am sorry - so that really is the snippet I wanted to share - bean id

2017-03-21 16:12:40 GMT <angelborroy> but I cannot understand where your expressions is located

2017-03-21 16:12:53 GMT <angelborroy> that input=…

2017-03-21 16:13:34 GMT <kryptynasium> My expression is located in the BPMN XML file

2017-03-21 16:14:08 GMT <angelborroy> in which element?

2017-03-21 16:16:50 GMT <kryptynasium> angelborroy: here is the BPMN file: http://pastebin.com/aqifmWNr

2017-03-21 16:16:51 GMT <alfbot> Title: output - Pastebin.com (at pastebin.com)

2017-03-21 16:18:38 GMT <angelborroy> I cannot see any exclusiveGateway there

2017-03-21 16:18:38 GMT <kryptynasium> Line # 10: <activiti:expression>${queryBean.getGenderString(gender)}</activiti:expression>

2017-03-21 16:19:10 GMT <kryptynasium> Sorry sent wrong one - one moment

2017-03-21 16:21:33 GMT <kryptynasium> This one: http://pastebin.com/SfwPBCPJ

2017-03-21 16:21:34 GMT <alfbot> Title: check - Pastebin.com (at pastebin.com)

2017-03-21 16:22:02 GMT <kryptynasium> The conditions: <conditionExpression xsi:type="tFormalExpression">${queryBean.isQueryResult() == true}</conditionExpression>

2017-03-21 16:22:34 GMT <kryptynasium> And else: <conditionExpression xsi:type="tFormalExpression">${queryBean.isQueryResult() == false}</conditionExpression> - under "Sequence Flow" tag

2017-03-21 16:23:50 GMT <angelborroy> is it your first workflow?

2017-03-21 16:23:57 GMT <angelborroy> maybe you can try this http://ecmarchitect.com/alfresco-developer-series-tutorials/workflow/tutorial/tutorial.html

2017-03-21 16:23:58 GMT <alfbot> Title: Creating Custom Advanced Workflows in Alfresco | ECM Architect | Alfresco Developer Tutorials (at ecmarchitect.com)

2017-03-21 16:25:26 GMT <kryptynasium> Yes - this is my first time using a gateway workflow

2017-03-21 16:25:26 GMT <angelborroy> basically you cannot use methods in a tFormalExpression field

2017-03-21 16:25:36 GMT <kryptynasium> I see

2017-03-21 16:26:40 GMT <angelborroy> read that Jeff Potts tutorial and try to adapt your logic

2017-03-21 16:27:34 GMT <angelborroy> it should be easier to write Java code associated to wf steps and to use variables for gateways and so

2017-03-21 16:27:43 GMT <kryptynasium> Ok - Awesome appreciate tons! Cheers ;)

2017-03-21 20:15:34 GMT <kryptynasium> AFaust: Are you there?

2017-03-21 20:26:23 GMT <AFaust> I am still online but currently on my evening relaxation schedule...

End of Daily Log

The other logs are at http://esplins.org/hash_alfresco