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-04-06 07:04:14 GMT <alfbot> yreg: Sent 21 hours and 38 minutes ago: <DarkStar1> I assume there's no need for me to pong you back :)

2017-04-06 07:08:36 GMT <yreg> Good morning

2017-04-06 07:09:20 GMT * yreg misses his office and his desktop IRC client :3

2017-04-06 07:31:35 GMT <DarkStar1> morning everyone

2017-04-06 08:00:54 GMT <mrks_js> hey yreg: i'll bee at beecon ;)

2017-04-06 09:09:46 GMT <bhagyas> AFaust: Do you have an idea how to make the config evaluator respond to regexes?

2017-04-06 09:10:47 GMT <AFaust> bhagyas: Simply register a custom evaluator type implementation i.e. "string-regex"

2017-04-06 09:12:10 GMT <AFaust> It just needs to implement org.springframework.extensions.config.evaluator.Evaluator

2017-04-06 09:12:11 GMT <bhagyas> Got it

2017-04-06 09:13:00 GMT <bhagyas> oh noes

2017-04-06 09:13:04 GMT <bhagyas> its initialised from code :|

2017-04-06 09:13:44 GMT <bhagyas> BaseConfigService.initConfig

2017-04-06 09:13:46 GMT <bhagyas> :|

2017-04-06 09:17:11 GMT <bhagyas> AFaust: Do you have any reference examples?

2017-04-06 09:17:13 GMT <AFaust> You can register your own via a config XML too

2017-04-06 09:17:24 GMT <bhagyas> AFaust: That's what I'm looking for atm

2017-04-06 09:17:33 GMT <bhagyas> There is no documentation

2017-04-06 09:17:45 GMT <bhagyas> I see a XMLConfigService that extends from BaseConfigService

2017-04-06 09:18:43 GMT <AFaust> XmlConfigService parse(InputStream) handles registration of evaluators defined in XML

2017-04-06 09:19:34 GMT <bhagyas> yes, reading through the whole class now to figure out how to configure it now

2017-04-06 09:19:35 GMT <AFaust> There is a root-level XML element "evaluators" where you can provide your own - this is handled by XMLConfigService.parseEvaluatorsElement(Element)

2017-04-06 09:20:06 GMT <AFaust> Basically <evaluators><evaluator id="my-type" class="com.acme.my.Evaluator" /> </evaluators>>

2017-04-06 09:20:45 GMT <bhagyas> Would that work from an extension context?

2017-04-06 09:20:47 GMT <AFaust> I think technically the nested element can have any name (which I find weird)

2017-04-06 09:20:53 GMT <bhagyas> or should that be in a root context?

2017-04-06 09:21:13 GMT <bhagyas> there are no different parses for each right?

2017-04-06 09:21:32 GMT <AFaust> I believe it would not work in an extension context and it should always be as early as possible

2017-04-06 09:22:57 GMT <AFaust> Although it is not as critical as with element-readers to register them as soon as possible

2017-04-06 09:23:30 GMT <AFaust> Just before the first time that a config section may be requested

2017-04-06 09:24:03 GMT <AFaust> Otherwise at that point the lookup for the evaluator will cause a ConfigException (BaseConfigService.processSection())

2017-04-06 09:24:50 GMT <AFaust> At PRODYNA I had a coupld of custom evaluators, e.g. "string-equals-with-Alfresco-version"

2017-04-06 09:25:10 GMT <AFaust> So I could specify which section was relevant e.g. for Alfresco 4.2 only

2017-04-06 09:30:07 GMT <bhagyas> ah..

2017-04-06 09:30:14 GMT <bhagyas> I was able to get a merged form processor to run

2017-04-06 09:30:32 GMT <bhagyas> but I had no way of sending the nodeRef, so used itemId with a separator and NodeRef

2017-04-06 09:30:59 GMT <bhagyas> but now the Share doesn't load the form layout

2017-04-06 09:31:30 GMT <bhagyas> can it be the string-compare is hard-wired to surf form generator?

2017-04-06 09:31:45 GMT <bhagyas> or will it work with a regex-compare...

2017-04-06 09:34:36 GMT <AFaust> string-compare is not hard-wired

2017-04-06 09:35:06 GMT <AFaust> e.g. we already have ~4 different evaluators in use for forms - aspect, model-type, node-type and string-compare

2017-04-06 09:35:18 GMT <AFaust> not to forget task-type (so 5 evaluators)

2017-04-06 09:35:35 GMT <bhagyas> right

2017-04-06 09:35:53 GMT <AFaust> You just need to make your evaluator correctly work with the various "types" of condition values

2017-04-06 09:36:29 GMT <bhagyas> yeah

2017-04-06 09:37:41 GMT <bhagyas> doing an early test now

2017-04-06 09:39:54 GMT <bhagyas> wondering how the actionform config figures out what form it needs to load

2017-04-06 09:41:08 GMT <bhagyas> ok it flopped

2017-04-06 09:41:20 GMT <bhagyas> "Unable to locate evaluator implementation for 'regex-compare' for org.springframework.extensions.config.ConfigSectionImpl"

2017-04-06 09:42:39 GMT <bhagyas> but I did have the regex-compare under evaluators in the root context 🤔

2017-04-06 09:43:50 GMT <fwu> hello all!

2017-04-06 10:05:17 GMT <bhagyas> AFaust: The class doesn't seem to get picked up at all

2017-04-06 10:05:27 GMT <bhagyas> I used the same syntax you suggested

2017-04-06 10:06:51 GMT <AFaust> In what file did you put it?

2017-04-06 10:09:22 GMT <bhagyas> I put it in the root config loader

2017-04-06 10:09:31 GMT <bhagyas> config*

2017-04-06 10:15:39 GMT <bhagyas> Just noticed plug-ins

2017-04-06 10:15:43 GMT <bhagyas> around <evaluators>

2017-04-06 10:15:53 GMT <bhagyas> from this: https://github.com/Alfresco/records-management/blob/18e836d60ff97394fcdb8ae20d961f19710ecf8d/rm-community/rm-community-share/config/alfresco/rm-form-config.xml

2017-04-06 10:15:54 GMT <alfbot> Title: records-management/rm-form-config.xml at 18e836d60ff97394fcdb8ae20d961f19710ecf8d · Alfresco/records-management · GitHub (at github.com)

2017-04-06 10:15:58 GMT <bhagyas> Going to try it now

2017-04-06 10:17:16 GMT <bhagyas> yup

2017-04-06 10:17:22 GMT <bhagyas> looks like it gets loaded now

2017-04-06 10:17:31 GMT <bhagyas> will work on regex after lunch and keep u updated

2017-04-06 10:29:39 GMT <AFaust> ah - yes. Forgot to mention the plugins container

2017-04-06 11:38:25 GMT <Loftux1> Is there any good reporting for Activiti when using community? Like for a manager to get an overview of running workflows/current tasks for a team member?

2017-04-06 11:45:03 GMT <yreg> Loftux1, Alvex does have such features for embedded activiti in Alfresco

2017-04-06 11:49:48 GMT <yreg> Loftux1, https://github.com/ITDSystems/alvex-manager-dashboard-tasks

2017-04-06 11:49:49 GMT <alfbot> Title: GitHub - ITDSystems/alvex-manager-dashboard-tasks (at github.com)

2017-04-06 11:50:08 GMT <Loftux1> yreg: Thanks, having a look now

2017-04-06 12:08:29 GMT <bhagyas> yreg: Since you have spent some more time with activiti, how would you rate Camunda as an alternative?

2017-04-06 12:11:08 GMT <yreg> bhagyas, TBH I haven't given it a try yet

2017-04-06 12:11:33 GMT <yreg> I was thinking about evaluating activiti forks / alternatives

2017-04-06 12:11:44 GMT <bhagyas> I got to meet Camunda co-founder yesterday and they seem to be doing really well

2017-04-06 12:12:00 GMT <yreg> and see if I can work an alfresco integration for one of them

2017-04-06 12:12:10 GMT <bhagyas> yreg: That's interesting, do keep us updated

2017-04-06 12:12:13 GMT <yreg> but haven't found time for that just yet

2017-04-06 12:12:36 GMT <yreg> I will probably have a slot for that after BeeCon

2017-04-06 12:13:17 GMT <bhagyas> yreg: I did an evaluation or a feature comparison a few weeks ago with Activti and Camunda - and it seems like Camunda is a lot far ahead in terms of UX and features

2017-04-06 12:13:19 GMT <yreg> bhagyas, I know AFaust had some clients running camunda when he was working at his previous employer

2017-04-06 12:13:24 GMT <bhagyas> aha

2017-04-06 12:14:22 GMT <bhagyas> should await his comments

2017-04-06 12:14:28 GMT <bhagyas> then

2017-04-06 12:14:49 GMT <AFaust> Well - the company had customers running Camunda, but I was not involved in these projects

2017-04-06 12:14:52 GMT <bhagyas> I'll post the yesterdays presentation if I find a link to it

2017-04-06 12:15:05 GMT <yreg> to be hones, UX does not figure on my checklist, since what I was thinking about doing was more like add some alfresco API (java services + JS integration) for the remote REST application

2017-04-06 12:15:14 GMT <yreg> + using a UI embedded in Alfresco

2017-04-06 12:15:34 GMT <bhagyas> yreg: checkout their docker image, that's quicker

2017-04-06 12:15:35 GMT <AFaust> I met Bernd Rücker when we did a workshops for our architects...

2017-04-06 12:15:46 GMT <bhagyas> AFaust: I met him yesterday

2017-04-06 12:30:24 GMT <bhagyas> AFaust: Almost there with the merged action/properties form generator

2017-04-06 12:30:43 GMT <bhagyas> looks like the form control custom properties don't get loaded if you use a custom evaluator

2017-04-06 12:30:44 GMT <bhagyas> :|

2017-04-06 12:34:28 GMT <bhagyas> AFaust: have you come across this?

2017-04-06 12:35:19 GMT <AFaust> Nope

2017-04-06 12:35:40 GMT <bhagyas> :/

2017-04-06 12:35:52 GMT <AFaust> There should be no correlation between custom evaluators and form control configuration/properties

2017-04-06 12:36:05 GMT <AFaust> As long as the section in general is being used

2017-04-06 12:36:06 GMT <bhagyas> exactly

2017-04-06 12:36:40 GMT <bhagyas> there is a custom control that has a parameter, and the parameter doesn't seem to be getting passed when the control is rendered …and only happens when there is a custom evaluator

2017-04-06 12:37:35 GMT <bhagyas> ok

2017-04-06 12:37:49 GMT <bhagyas> found that it was being called for something unrelated

2017-04-06 12:37:50 GMT <bhagyas> ignore

2017-04-06 12:44:32 GMT <bhagyas> PHEW!!

2017-04-06 12:49:07 GMT <LMattioli> Anyone at https://www.ng-conf.org/ in Utah this days?

2017-04-06 12:49:08 GMT <alfbot> Title: ng-conf April 5th–7th 2017 - The World's Original Angular Conference (at www.ng-conf.org)

2017-04-06 12:52:19 GMT <bhagyas> LMattioli: Are you?

2017-04-06 13:11:21 GMT <LMattioli> bhagyas: no... I've only to improve my English grammar...

2017-04-06 13:12:32 GMT <LMattioli> bhagyas: and I'll not going to Beecon too... I promise I'll do better in future...

2017-04-06 13:21:24 GMT <douglascrp> yreg, Loftux1 I am using the alvex components right now

2017-04-06 13:21:26 GMT <douglascrp> it works ok

2017-04-06 13:21:40 GMT <douglascrp> but it still has some bugs that need to be solved

2017-04-06 13:22:00 GMT <douglascrp> I have fixed some of them myself when I first implemented it in this customer, but I know there are more

2017-04-06 13:22:19 GMT <douglascrp> I haven't worked on them yet because those do not cause me trouble right now

2017-04-06 13:42:28 GMT <Jess__> Anybody know if it is posible to ajust the zoom level of the document previewer in Alfresco 5?

2017-04-06 13:45:06 GMT <Jess__> And by ajust I mean ajusting the default zoom level for all users..

2017-04-06 13:45:07 GMT <yreg> Jess__, I have done it before

2017-04-06 13:45:34 GMT <yreg> but that was by far, not one of the cleanest extensions

2017-04-06 13:45:48 GMT <yreg> as I needed to override some JS file

2017-04-06 13:46:11 GMT <yreg> there is no config entry point for that AFAIK

2017-04-06 13:46:16 GMT <Jess__> suprep, do remember which one?

2017-04-06 13:46:19 GMT <Jess__> do you

2017-04-06 13:46:37 GMT <Loftux1> Jess__: You can set the property defaultScale

2017-04-06 13:47:45 GMT <Jess__> in global properties?

2017-04-06 13:48:50 GMT <yreg> Jess__, I think he is talking about this one : https://github.com/Alfresco/share/blob/1c5a56d1def1c0e671c4eec5402b9f9f51c7a4e5/share/src/main/webapp/components/preview/PdfJs.js#L135

2017-04-06 13:48:51 GMT <alfbot> Title: share/PdfJs.js at 1c5a56d1def1c0e671c4eec5402b9f9f51c7a4e5 · Alfresco/share · GitHub (at github.com)

2017-04-06 13:49:52 GMT <Jess__> super, thank you I will try that

2017-04-06 14:00:59 GMT <Loftux1> Jess__: yreg yes and in your web-preview-get.config.xml You can do something like

2017-04-06 14:01:28 GMT <Loftux1> <condition mimeType="application/pdf">

2017-04-06 14:01:28 GMT <Loftux1> <plugin progressiveLoading="false" defaultsScale="0.8">PdfJs</plugin>

2017-04-06 14:01:28 GMT <Loftux1> </condition>

2017-04-06 14:10:16 GMT <yreg> Loftux1, I did not know you could do that

2017-04-06 14:10:26 GMT <yreg> thanks fo sharing that

2017-04-06 14:19:29 GMT <Loftux1> yreg: You can also override as an extension in js, this is how there could be an "Enable" in the old share extras version https://github.com/share-extras/media-viewers/blob/master/config/webscripts/org/sharextras/customization/media-previews/pdfjs-config/web-preview.get.js

2017-04-06 14:19:30 GMT <alfbot> Title: media-viewers/web-preview.get.js at master · share-extras/media-viewers · GitHub (at github.com)

2017-04-06 14:20:04 GMT <douglascrp> Loftux1, man, I was searching for something like that

2017-04-06 14:20:07 GMT <douglascrp> thank you so much

2017-04-06 14:20:17 GMT <Loftux1> I do all my viewer config the js way, easier than xml config

2017-04-06 14:22:35 GMT <Loftux1> Since in the js you can make certain viewer available base on if user is admin, in a group or whatever logic it becomes quite powerful.

2017-04-06 14:23:38 GMT <douglascrp> Loftux1, I have some customizations to remove the download button in the pdf.js and also add a button to allow the document to be printed

2017-04-06 14:23:54 GMT <douglascrp> I am going to take a look on the new information you just gave in order to see if those can be improved

2017-04-06 14:25:00 GMT <Loftux1> douglascrp: Ha, I just had to do that, remove download since the pdf page breaks becomes corrupt when Ms office tables are involved.

2017-04-06 14:25:36 GMT <douglascrp> nice

2017-04-06 14:26:08 GMT <Loftux1> douglascrp: And now for the dirty hack, I just copeid and replace the whole PdfJs.js because there is no good way to override just that. Sorry for getting your expectations up :P

2017-04-06 14:26:43 GMT <douglascrp> :D

2017-04-06 14:26:50 GMT <douglascrp> I know the feeling... don't worry about that

2017-04-06 14:30:22 GMT <Loftux1> Maybe I should add an actual configuration attribute, viewerButtons : ["sidebar","zoom", "download", "…"]

2017-04-06 14:33:33 GMT <mbui> Someone fell asleep on the keyboard while documenting: http://sharextras.org/jsdoc/share/enterprise-4.0.0/symbols/Alfresco.component.ManagePermissions.html#onReady

2017-04-06 14:33:34 GMT <alfbot> Title: Share Client-side API - Alfresco.component.ManagePermissions (at sharextras.org)

2017-04-06 14:34:09 GMT <douglascrp> mbui, :D

2017-04-06 16:01:06 GMT <LMattioli> ~channelstats

2017-04-06 16:01:06 GMT <alfbot> LMattioli: On #alfresco there have been 290268 messages, containing 12793236 characters, 2116156 words, 11550 smileys, and 11984 frowns; 1161 of those messages were ACTIONs. There have been 100634 joins, 2379 parts, 97924 quits, 0 kicks, 92 mode changes, and 46 topic changes. There are currently 35 users and the channel has peaked at 62 users.

End of Daily Log

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