Changes for page SMB - Dynamically Manipulate Settings
Last modified by Erik Bakker on 2024/09/03 09:17
From version 30.1
edited by Carlijn Kokkeler
on 2024/08/29 11:16
on 2024/08/29 11:16
Change comment:
There is no comment for this version
To version 26.1
edited by Erik Bakker
on 2024/07/01 13:08
on 2024/07/01 13:08
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. CarlijnKokkeler1 +XWiki.ebakker - Content
-
... ... @@ -1,7 +1,7 @@ 1 1 {{container}}{{container layoutStyle="columns"}}((( 2 2 In a previous [[microlearning>>doc:Main.eMagiz Academy.Microlearnings.Intermediate Level.File based connectivity.intermediate-file-based-connectivity-smb-connectivity.WebHome||target="blank"]] on this subject, we discussed how to configure the various variants of SMB connectivity. We already mentioned that more dynamic options, such as automatically creating a "multi-level" directory (i.e.,/root/sub), are complex to configure and require a different approach. 3 3 4 -In this microlearning module, we’lldelveintodynamically manipulatingsettings on the SMB Session Factory.Thisapproachis particularlyusefulwhen you needtocreatedirectorieson-the-flyormanage file sharesacrossmultiple hosts. We’ll explore how to configuredynamicsettingssuchashost,share,and directory usingthe Standard ServiceActivator, and discuss additionaldynamicoptions to enhance flexibility in your SMB configurations.4 +In this microlearning, we will examine how to manipulate all settings on the SMB Session Factory to create dynamic values that are injected into the component when a message is processed by the flow. 5 5 6 6 If you have any questions, don't hesitate to contact [[academy@emagiz.com>>mailto:academy@emagiz.com]]. 7 7 ... ... @@ -36,9 +36,9 @@ 36 36 [[image:Main.Images.Microlearning.WebHome@advanced-file-connectivity-dynamically-manipulate-smb-settings--standard-service-activator.png]] 37 37 38 38 Here, we must define an expression to set the host based on a supplied value. Important in this expression is that we correctly reference the complete name of the SMB Session Factory support object in the flow and that once the host is set, the actual message is passed along. An example of such an expression is: 39 - 39 + 40 40 {{code}}@'smb.gtwydynm.exit.support.smb-session'.setHost(headers.server) ?: #root{{/code}} 41 - 41 + 42 42 This expression will set the host based on the value in the header called "server" and, once done, will pass the full message to the output channel. 43 43 44 44 [[image:Main.Images.Microlearning.WebHome@advanced-file-connectivity-dynamically-manipulate-smb-settings--standard-service-activator-filled-in.png]] ... ... @@ -52,9 +52,9 @@ 52 52 [[image:Main.Images.Microlearning.WebHome@advanced-file-connectivity-dynamically-manipulate-smb-settings--standard-service-activator.png]] 53 53 54 54 Here, we must define an expression to set the host based on a supplied value. Important in this expression is that we correctly reference the complete name of the SMB Session Factory support object in the flow and that once the host is set, the actual message is passed along. An example of such an expression is: 55 - 55 + 56 56 {{code}}@'smb.gtwydynm.exit.support.smb-session'.setShareAndDir(headers.share) ?: #root{{/code}} 57 - 57 + 58 58 This expression will set the host based on the value in the header called "server" and, once done, will pass the full message to the output channel. 59 59 60 60 [[image:Main.Images.Microlearning.WebHome@advanced-file-connectivity-dynamically-manipulate-smb-settings--standard-service-activator-filled-in-share-and-dir.png]] ... ... @@ -83,8 +83,4 @@ 83 83 84 84 == 5. Suggested Additional Readings == 85 85 86 -* [[Intermediate (Menu)>>doc:Main.eMagiz Academy.Microlearnings.Intermediate Level.WebHome||target="blank"]] 87 -** [[File based connectivity (Navigation)>>doc:Main.eMagiz Academy.Microlearnings.Intermediate Level.File based connectivity.WebHome||target="blank"]] 88 -*** [[SMB Connectivity (Explanation)>>doc:Main.eMagiz Academy.Microlearnings.Intermediate Level.File based connectivity.intermediate-file-based-connectivity-smb-connectivity.WebHome||target="blank"]] 89 - 90 -)))((({{toc/}}))){{/container}}{{/container}} 86 +There are no suggested additional readings on this topic.)))((({{toc/}}))){{/container}}{{/container}}