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

2018-01-15 06:05:02 GMT <alfaalfa> hi everyone

2018-01-15 06:05:32 GMT <alfaalfa> is it possible to call this api ( https://api-explorer.alfresco.com/api-explorer/#!/nodes/createNode) from a workflow xml extension?

2018-01-15 06:05:33 GMT <alfbot> Title: Alfresco Content Services REST API Explorer (at api-explorer.alfresco.com)

2018-01-15 07:48:18 GMT <Younes> alfbot, are you referring to a standalone BPM Application, or at least one that is external to alfresco ?

2018-01-15 07:48:18 GMT <alfbot> Younes: Error: "are" is not a valid command.

2018-01-15 07:48:32 GMT <Younes> alfaalfa, are you referring to a standalone BPM Application, or at least one that is external to alfresco ?

2018-01-15 07:49:19 GMT <Younes> alfbot later tell alfaalfa, are you referring to a standalone BPM Application, or at least one that is external to alfresco ?

2018-01-15 07:49:19 GMT <alfbot> Younes: The operation succeeded.

2018-01-15 08:20:23 GMT <alfbot> alfaalfa: Sent 31 minutes ago: <Younes> you referring to a standalone BPM Application, or at least one that is external to alfresco ?

2018-01-15 08:21:36 GMT <alfaalfa> i'm referring to alfresco share @younes

2018-01-15 09:02:10 GMT <Loftux> Why would the exact same fts-alfresco query fail in java when it works in the node browser?

2018-01-15 09:05:57 GMT <Younes> Loftux, escaping ?

2018-01-15 09:06:49 GMT <Younes> alfaalfa, you do not have embedded workflows in share

2018-01-15 09:07:10 GMT <Younes> Are you trying to use the result of a REST API call in a form control in share ?

2018-01-15 09:08:44 GMT <Loftux> Younes: Can be, it is =mymodel:myId:c2f5f9cf-54d7-4588-835a-6735bdb5c386. It works with and without quoting the value in node browser. Maybe it escapes automatically

2018-01-15 09:10:31 GMT <Loftux> Do the dashes need to be escaped in java?

2018-01-15 09:16:40 GMT <Younes> loftuc not in java, but possibly in FTS

2018-01-15 09:17:02 GMT <Younes> I know for sure node-uuid needs escaping for the dash

2018-01-15 09:17:17 GMT <Younes> so it is better to put the value in quotes

2018-01-15 09:17:33 GMT <Younes> and use escaping for the key/property

2018-01-15 09:28:34 GMT <alfaalfa_> @younes yes

2018-01-15 09:32:04 GMT <Younes> Loftux, sorry, used the wron handle

2018-01-15 09:33:18 GMT <Younes> alfaalfa_, you should not be creating nodes in the form control in share (even though you could) such a logic should be part of a service/script task AFAIK

2018-01-15 09:34:01 GMT <Younes> alfaalfa_, in any case, I am not sure if there is an OOTB surf endpoint for the public rest API in share or if you need to set one up

2018-01-15 09:34:10 GMT <alfaalfa_> @younes i am trying to call a rest api to create node on start event of workflow

2018-01-15 09:34:20 GMT <Loftux> Younes: Now trying this, didn't work: new FullTextSearchParameters("=mymodel:myId:\"" + value + "\"");

2018-01-15 09:34:30 GMT <Younes> such an endpoint would guarantee that your alfresco call would be authenticated as the currently connected user inshare

2018-01-15 09:34:31 GMT <Loftux> so the value is a uuid

2018-01-15 09:35:26 GMT <Younes> loftux could you share a bigger snippet in a sort of paste ?

2018-01-15 09:35:55 GMT <alfaalfa_> @younes i got hopeful when i saw this http://docs.alfresco.com/5.2/concepts/wf-process-def-listeners-execution.html

2018-01-15 09:35:57 GMT <alfbot> Title: Execution listeners | Alfresco Documentation (at docs.alfresco.com)

2018-01-15 09:37:25 GMT <alfaalfa_> @younes i thought may be i could add some kind of api call as the script

2018-01-15 09:40:28 GMT <Younes> alfaalfa_, if you are inside an execution listener, then you are in the repo side, and you could use the JS api for your logic

2018-01-15 09:42:30 GMT <alfaalfa_> @younes can you point me to any example as such ? i have no idea how+where i can add a js script file and how to make my workflow use it ?

2018-01-15 09:54:03 GMT *** Younes is now known as yreg

2018-01-15 10:00:35 GMT <alfaalfa_> @yreg do you think this will help http://docs.alfresco.com/process-services1.7/topics/process_engine_event_listeners.html

2018-01-15 10:00:37 GMT <alfbot> Title: Process Engine event listeners | Alfresco Documentation (at docs.alfresco.com)

2018-01-15 10:34:12 GMT <MorganP> Hello guys

2018-01-15 16:35:10 GMT <qwebirc9016> how to extend a javascript component inside share.war for example object-finder.js

2018-01-15 16:39:59 GMT <douglascrp> qwebirc9016, check this out http://alfrescoblog.com/2014/05/28/alfresco-share-custom-object-finder-js/

2018-01-15 16:40:03 GMT <alfbot> Title: Alfresco share custom object-finder.js | Alfresco Blog (at alfrescoblog.com)

2018-01-15 16:40:52 GMT <qwebirc9016> i have checked that but i'm confused where to place the customized file in share

2018-01-15 16:41:11 GMT <qwebirc9016> because now the amp folder doesn't exist anymore

2018-01-15 16:45:06 GMT <douglascrp> what file exactly?

2018-01-15 16:45:17 GMT <douglascrp> if you give more details, we can try to help you

2018-01-15 16:46:02 GMT <qwebirc9016> alfrescoblogAMPArchShare\src\main\amp\web\components\com\alfrescoblog\ab-object-finder\ab-object-finder.js

2018-01-15 16:46:34 GMT <qwebirc9016> in sdk 3.0.0 there is no app folder

2018-01-15 16:47:11 GMT <qwebirc9016> so we have three options inside src\main\ :assembly,resources and META-INF

2018-01-15 16:48:01 GMT <douglascrp> ah, right

2018-01-15 16:48:30 GMT <qwebirc9016> i couldn't find any latest thing on this

2018-01-15 16:48:40 GMT <douglascrp> try alfrescoblogAMPArchShare\src\main\assembly\web\components\com\alfrescoblog\ab-object-finder\ab-object-finder.js

2018-01-15 16:49:03 GMT <douglascrp> but for that to work, you will have to enable the AMP creation

2018-01-15 16:49:09 GMT <qwebirc9016> how do i reference it ?

2018-01-15 16:49:09 GMT <douglascrp> if you haven't done already

2018-01-15 16:49:41 GMT <qwebirc9016> is there any alternative to do this without amp creation?

2018-01-15 16:49:42 GMT <douglascrp> you do not have to use absolute references

2018-01-15 16:50:16 GMT <qwebirc9016> where do i add the script tag like they have done in the tutorial?

2018-01-15 16:50:32 GMT <douglascrp> yes, if you put it inside alfrescoblogAMPArchShare\src\main\resources\META-INF\components\com\alfrescoblog\ab-object-finder\ab-object-finder.js

2018-01-15 16:51:05 GMT <qwebirc9016> i will do that then

2018-01-15 16:51:18 GMT <douglascrp> but in this case, the reference will be through <share-context>/res/components/com/alfrescoblog/ab-object-finder/ab-object-finder.js

2018-01-15 16:51:44 GMT <douglascrp> sorry... there is one missing folder in that

2018-01-15 16:51:55 GMT <douglascrp> alfrescoblogAMPArchShare\src\main\resources\META-INF\resources\components\com\alfrescoblog\ab-object-finder\ab-object-finder.js

2018-01-15 16:52:19 GMT <qwebirc9016> <share-context> ? do i have to add that in bootstrap-context.html?

2018-01-15 16:52:31 GMT <douglascrp> the META-INF/resources is "published" (not sure about the term to describe this) as "res"

2018-01-15 16:52:54 GMT <douglascrp> no, share-context is the runtime URL

2018-01-15 16:53:06 GMT <douglascrp> like, "http://localhost:/8080/share"

2018-01-15 16:53:28 GMT <douglascrp> http://localhost:/8080/share/res/components/com/alfrescoblog/ab-object-finder/ab-object-finder.js

2018-01-15 16:54:02 GMT <qwebirc9016> oh ok i got that

2018-01-15 16:54:50 GMT <qwebirc9016> then the rest of the process is the same right?

2018-01-15 16:55:20 GMT <qwebirc9016> like including the script in share-config-custom.xml

2018-01-15 17:12:49 GMT <qwebirc9016> thanks doug

2018-01-15 19:02:00 GMT <HarlinS> Anyone know of a monitoring tool that can monitor availability, performance, logging and provide historical analytics of these points for Alfresco?

2018-01-15 19:02:20 GMT <HarlinS> NetIQ comes to mind but I haven't tested it myself. Have just been using a hodge/podge of tools.

2018-01-15 19:27:56 GMT <douglascrp> HarlinS, there are some

2018-01-15 19:27:57 GMT <douglascrp> https://www.zylk.net/es/web-2-0/blog/-/blogs/kibana-dashboard-for-monitoring-alfresco-community-via-ootb-support-tools

2018-01-15 19:27:58 GMT <alfbot> Title: Monitoring Alfresco CE with ELK stack - Kibana dashboard for monitoring Alfresco Community via OOTB Support Tools - zylk (at www.zylk.net)

2018-01-15 19:28:09 GMT <douglascrp> https://www.zylk.net/es/web-2-0/blog/-/blogs/docker-image-for-nagios-setup-for-alfresco-community

2018-01-15 19:28:10 GMT <alfbot> Title: Dockerfile for Alfresco monitoring - Docker image for Nagios setup for Alfresco Community - zylk (at www.zylk.net)

2018-01-15 19:28:40 GMT <douglascrp> https://community.alfresco.com/blogs/alfresco-premier-services/2017/06/20/alfresco-monitoring-with-docker-and-elk

2018-01-15 19:28:42 GMT <alfbot> Title: Alfresco Monitoring with Docker and ELK | Alfresco Community (at community.alfresco.com)

2018-01-15 19:29:30 GMT <douglascrp> https://www.zylk.net/es/web-2-0/blog/-/blogs/basic-nagios-setup-for-alfresco-community

2018-01-15 19:29:31 GMT <alfbot> Title: Using OOTB Support Tools addon for monitoring Alfresco - Basic Nagios setup for Alfresco Community - zylk (at www.zylk.net)

2018-01-15 20:40:27 GMT *** novem_it is now known as tass01024

End of Daily Log

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