Sei sulla pagina 1di 36

RoambiEnterpriseTalendComponentsMay2016

Roambi Enterprise
Talend Components

1
RoambiEnterpriseTalendComponentsMay2016

TableofContents

I.Overview
Introduction
II.Setup
Requirements
RoambiRequirements
TalendRequirements
RoambiConfiguration
CreatingAPIKey
TalendConfiguration
SettingupRoambiScript
SettingupRoambiTalendComponents
III.HowtoUse
tRoambiUpdate
tRoambiMultipleUpdates
tRoambiPublishWithFile
tRoambiMultiplePublishWithFile
IV.UseCases
PublishingmultiplefilesusingthetFlowToIteratecomponent
PublishingmultiplefilesusingthetFlowToIteratecomponentandSendEmailNotification
forErrors.
PublishingmultiplefilesusingthetFlowToIteratecomponent,RetryincaseofErrorand
SendEmailNotificationforErrors.
AppendixA:TroubleshootingandCommonIssues

2
RoambiEnterpriseTalendComponentsMay2016

I. Overview
Introduction
TheRoambiEnterpriseTalendComponentssimplifiestheprocessofupdatingaRoambireport
withdatapreparedbyTalendETLtool.

WiththenewRoambiTalendcomponents,aTalendusercanaggregatedatafromavarietyof
datasourcesincludingSalesforce,databases,webservices,andpreparethemforRoambi
Analyticscreation.WithTalend,theentireprocessofdatacollection,preparation,andcreation
ofRoambicanbeautomated.

FordetailedinformationaboutTalend:
https://www.talend.com/products/dataintegration

DownloadTalendOpenStudioandDocumentation:
https://www.talend.com/download/talendopenstudio?qtproduct_tos_download=3

3
RoambiEnterpriseTalendComponentsMay2016

II. Setup
Requirements
Roambi Requirements
1. CreatedaRoambiView tobeusedasatemplate.
2. AdministratoraccesstoRoambiEnterprise.
3. RoambiEnterpriseAPIClientKey.
4. InstallandconfigureRoambiScript.
5. RoambiUsersinvitedintoAccount.

Talend Requirements
1. TalendOpenStudio,orotherTalendDataIntegrationoffering
2. InstallRoambiEnterpriseTalendComponents

Roambi Configuration
TheRoambiEnterpriseTalendComponentsenablesuserstouploadfiletoRoambiFileSystem
oruseanexistingRoambireportastemplatetocreatepersonalizedRoambireportstoyour
recipients.IfyouhavenotcreatedaRoambiReport,pleasereviewour gettingstartedmaterial
andselectaRoambiView tocreateyourfirstreport.

WhencreatingaRoambireportasatemplate,thegeneralworkflowis:

1. Determinethedatatobesharedwithyourrecipients.Decideifallrecipientswillgetthe
samedataoritwillbefilteredbyspecificcategory,product,orcountry.
2. Createasampledatafileasatemplate.
3. UploadtoRoambiEnterpriseandcreateyourRoambireport.
4. ReviewandrefinetheRoambiView.

Aswithalldesignprocesses,creatingaRoambireportwilltakefewiterationsandpractice.
Generalrecommendationistoworkthroughthestepsoutlinedhere,andgetearlyfeedback
fromrecipientsbeforeinvestingonperfectingthesmallerdetails.

Creating API Key

4
RoambiEnterpriseTalendComponentsMay2016

TheRoambiEnterpriseTalendComponentsleveragestheRoambiAPItofacilitatethecreation
ofRoambireports.NoprogrammingorAPIknowledgeisrequiredtousethecomponents,but
theyoudoneedtoregisteranAPIclient.

TosetupanAPIclientpleasefollowthestepsoutlinedintheknowledgebasearticle HowdoI
createaRoambiAPIclient?

PleasekeepthedetailsoftheAPIclientreadilyavailable,asitwillbeusedinthenextsection.

Talend Configuration
ToenabletheRoambiEnterpriseTalendComponents,itrequiresthefollowingtwosteps:

SettingupRoambiScript APIutilitythatTalendComponentswillusetocommunicate
toRoambiEnterprise.
AddingTalendComponents PackagefiletobeaddedtoTalendComponentlist.

5
RoambiEnterpriseTalendComponentsMay2016

Setting up RoambiScript

1. DownloadRoambiScriptfrom SAPServiceMarketplace .Createafolderthatcanbe


easilyreferenced.Inthisdocumentation,RoambiScriptisinstalledin
C:\roambiscript
folder.

2. Runroambiscriptconfigure intheterminaltogenerateapropertiesfile.

javajarroambiapicli.jarconfigure

3. Afterexecutingtheabovecommand,itwillcreatearoambiapi.cli.properties file.



NoteyouwillberequiredtoentertheAPIclientdetailsyoupreviouslycreatedin
CreatingAPIKey.ThiswillensurethatthisAPIutilityisprovisionedtotalktoyour
RoambiEnterpriseorganization.

Additionally,pleasenotetheRoambiScriptinstallationpath(inthisexampleitis
C:\roambiscript).Thecomponentswillneedtoreferencethisdirectorypath.

Setting up Roambi Talend Components

1. IdentifytheusercomponentsfolderofyourTalendinstallation.Forthis,openTalend
OpenStudioandclickonWindowmenuandthenonPreferencesoption.Onthe
Preferenceswindow,navigatetoTalend>Componentsandyouwillseethecurrent
Usercomponentfolderproperty.Ifthispropertyisnotset,thencreateafolderwhere
youwillinstallallyourusercomponentsandsetthispropertyaccordingly.

6
RoambiEnterpriseTalendComponentsMay2016

2. DownloadtheTalendRoambiComponentzipfile(roambitalendcomponents.zip)and
copyittosometempfolder.
3. CopythefolderstRoambiUpdate,tRoambiMultipleUpdates,tRoambiPublishWithFileand
tRoambiMultiplePublishWithFiletotheTalendusercomponentsfolder.
4. CloseandreopenTalendOpenStudio.NowyoushouldseethenewRoambi
componentsonthepaletteunderCloud>Roambicategory.

7
RoambiEnterpriseTalendComponentsMay2016

8
RoambiEnterpriseTalendComponentsMay2016

III. How to Use


WehavecreatedfouroutputtalendcomponentstRoambiUpdate,tRoambiMultipleUpdates,
tRoambiPublishWithFileandtRoambiMultiplePublishWithFile,thatyoucanusewhencreating
yourTalendjobs.

tRoambiUpdate

Thiscomponentuploadsthegivensourcefile(excelorcsvfile)toRoambiFileSystem(RFS).If
thefilealreadyexistsinRFS,itreplacesit.

ThesourcefilecanbecreatedwiththebuiltintFileOutputExcelortFileOutputDelimitedTalend
components.YoucanconnectthosecomponentstothetRoambiUpdatecomponent.

TheparametersofthetRoambiUpdatecomponentare:

Roambiscriptconfigfile:
Pathtotheroambiapi.cli.properties
file.Thisfilecontainsthesettingsto
connecttoRoambi.ThecreationofthisfilewasexplainedaboveintheSetting
upRoambiScriptsection.

9
RoambiEnterpriseTalendComponentsMay2016

SourceFile(excelorcsvfile):
Pathtothelocalsourcefile.

DestinationFolder:
FolderinRFSwherethefilewillbeuploaded.

Title:
NameofthenewfileinRFS.

Permissions:(Deprecated.UseUsersandGroupsparameters)
Roambiusersand/orgroupstograntaccesstothefile.Usesemicolonto
separatemultipleusersandgroups.i.e.
mauricio@mellmo.comdaniel@mellmo.comSalesGroup.

Users:
Roambiuserstograntaccesstothefile.Usesemicolontoseparatemultiple
users.i.e.mauricio@mellmo.comdaniel@mellmo.com.

Groups:
Roambigroupstograntaccesstothefile.Usesemicolontoseparatemultiple
groups.i.e.SalesGroup.

tRoambiMultipleUpdates

Thiscomponentuploadsmultiplesourcefiles(excelorcsvfiles)toRoambiFileSystem(RFS).
IfafilealreadyexistsinRFS,itreplacesit.

ThesourcefilescanbecreatedwiththebuiltintFileOutputExcelortFileOutputDelimitedTalend
components.Youcanuseasubjobtogeneratethosefilesandthentriggertheexecutionofthe
tRoambiMultipleUpdatescomponentwhenthesubjobcompletes.

10
RoambiEnterpriseTalendComponentsMay2016

TheparametersofthetRoambiMultipleUpdatescomponentare:

Roambiscriptconfigfile:
Pathtothe
roambiapi.cli.properties file.Thisfilecontainsthesettingsto
connecttoRoambi.ThecreationofthisfilewasexplainedaboveintheSetting
upRoambiScriptsection.

MappingTable:
TabletomapeachsourcefilewithitsdestinationinRFS.Thefieldsinthistable
are:

11
RoambiEnterpriseTalendComponentsMay2016

SourceFile(excelorcsvfile):
Pathtothelocalsourcefile.

DestinationFolder:
FolderinRFSwherethefilewillbeuploaded.

Title:
NameofthenewfileinRFS.

Permissions:(Deprecated.UseUsersandGroupsfields)
Roambiusersand/orgroupstograntaccesstothefile.Usesemicolonto
separatemultipleusersandgroups.i.e.
mauricio@mellmo.comdaniel@mellmo.comSalesGroup.

Users:
Roambiuserstograntaccesstothefile.Usesemicolontoseparate
multipleusers.i.e.mauricio@mellmo.comdaniel@mellmo.com.

Groups:
Roambigroupstograntaccesstothefile.Usesemicolontoseparate
multiplegroups.i.e.SalesGroup.

tRoambiPublishWithFile

ThiscomponentpublishesaRoambifilewiththegivensourcefile(excelorcsv)andthegiven
Roambitemplate.IftheRoambifilealreadyexistsinRFS,itrefreshesit.

ThesourcefilecanbecreatedwiththebuiltintFileOutputExcelortFileOutputDelimitedTalend
components.YoucanconnectthosecomponentstothetRoambiPublishWithFilecomponent.

12
RoambiEnterpriseTalendComponentsMay2016

TheparametersofthetRoambiPublishWithFilecomponentare:

Roambiscriptconfigfile:
Pathtotheroambiapi.cli.properties
file.Thisfilecontainsthesettingsto
connecttoRoambi.ThecreationofthisfilewasexplainedaboveintheSetting
upRoambiScriptsection.

SourceFile(excelorcsvfile):
Pathtothelocalsourcefile.

Template:
FullpathtotheRoambitemplatefileinRFS.

13
RoambiEnterpriseTalendComponentsMay2016

DestinationFolder:
Thisparameterisoptional.ItisthefolderinRFSwheretheRoambifilewillbe
published.Ifitisnotspecified,theRoambifilewillbecreatedintheMy
DocumentsfolderoftheRoambiusersgiveninthePermissionsparameter.

RoambiFileName:
NameoftheRoambifilethatwillbegenerated.

Permissions:(Deprecated.UseUsersandGroupsparameters)
Roambiusersand/orgroups.Thoseusersandgroupswillhavethepermissionto
openthegeneratedRoambifile.Usesemicolontoseparatemultipleusersand
groups.i.e.mauricio@mellmo.comdaniel@mellmo.comSalesGroup.

Users:
Roambiusers.Thoseuserswillhavethepermissiontoopenthegenerated
Roambifile.Usesemicolontoseparatemultipleusers.i.e.
mauricio@mellmo.comdaniel@mellmo.com.

Groups:
Roambigroups.Thosegroupswillhavethepermissiontoopenthegenerated
Roambifile.Usesemicolontoseparatemultiplegroups.i.e.SalesGroup.

tRoambiMultiplePublishWithFile

ThiscomponentpublishesmultipleRoambifilesfromdifferentsourcefiles(excelorcsv)and
Roambitemplates.IfaRoambifilealreadyexistsinRFS,itrefreshesit.

ThesourcefilecanbecreatedwiththebuiltintFileOutputExcelortFileOutputDelimitedTalend
components.Youcanuseasubjobtogeneratethosefilesandthentriggertheexecutionofthe
tRoambiMultiplePublishWithFilecomponentwhenthesubjobcompletes.

14
RoambiEnterpriseTalendComponentsMay2016

TheparametersofthetRoambiMultiplePublishWithFilecomponentare:

Roambiscriptconfigfile:
Pathtotheroambiapi.cli.properties
file.Thisfilecontainsthesettingsto
connecttoRoambi.ThecreationofthisfilewasexplainedaboveintheSetting
upRoambiScriptsection.

MappingTable:
TabletomapeachsourcefilewithitsRoambifileinRFS.Thefieldsinthistable
are:

SourceFile(excelorcsvfile):

15
RoambiEnterpriseTalendComponentsMay2016

Pathtothelocalsourcefile.

Template:
FullpathtotheRoambitemplatefileinRFS.

DestinationFolder:
Thisparameterisoptional.ItisthefolderinRFSwheretheRoambifile
willbepublished.Ifitisnotspecified,theRoambifilewillbecreatedinthe
MyDocumentsfolderoftheRoambiusersgiveninthePermissions
parameter.

RoambiFileName:
NameoftheRoambifilethatwillbegenerated.

Permissions:(Deprecated.UseUsersandGroupsfields)
Roambiusersand/orgroups.Thoseusersandgroupswillhavethe
permissiontoopenthegeneratedRoambifile.Usesemicolontoseparate
multipleusersandgroups.i.e.
mauricio@mellmo.comdaniel@mellmo.comSalesGroup.

Users:
Roambiusers.Thoseuserswillhavethepermissiontoopenthe
generatedRoambifile.Usesemicolontoseparatemultipleusers.i.e.
mauricio@mellmo.comdaniel@mellmo.com.

Groups:
Roambigroups.Thosegroupswillhavethepermissiontoopenthe
generatedRoambifile.Usesemicolontoseparatemultiplegroups.i.e.
SalesGroup.

IV. Use Cases

Publishing multiple files using the tFlowToIterate component

tRoambiPublishWithFilepublishesoneroambifilebasedonthegivensourcefile,template,
destinationfolderandpermissions(usersandgroups).Ifyouwanttopublishmultipleroambi
files,youmayhavethismappinginformationinatablestoredinadatabaseorinaCSVfile.

16
RoambiEnterpriseTalendComponentsMay2016

ForexampleyoucanhaveaCSVfilecalledmappingTable.csv,with6columns:sourcefile,
template,destinationfolder,roambifilename,usersandgroups.Thisisanexample:

Youwanttopublishalltheroambifilesinthattable.

ThesolutionistousethetFlowToIteratecomponent:

Thefirstsubjobisonchargeofcreatingthesourcefilesyouwanttouse.Inthiscaseitis
creating3excelfiles:TalendSquareSampleArgentina.xlsx,TalendSquareSampleBrazil.xlsx
andTalendSquareSampleUS.xlsx.

Whenthefirstsubjobcompletes,itcallsthesecondsubjobtopublishtherbis.Ituses
tFileInputDelimitedcomponenttoreadthemappingTable.csvfile.

17
RoambiEnterpriseTalendComponentsMay2016


Youneedtoedititsschemaparametertomatchthecontentofthecsvfile:

ThenconnectittothetFlowToIteratecomponent.IttakeseachrowfromtheCSV,createsa
globalvariableforeachcolumnandcallsthetRoambiPublishWithFilecomponenttopublishthe
roambifile.

ThisistheconfigurationofthetFlowToIteratecomponent.Addaglobalvariableforeachcolumn
oftheschemareceivedfromthetFileInputDelimitedcomponent.

18
RoambiEnterpriseTalendComponentsMay2016

Finally,tRoambiPublishWithFilecomponentisconfiguredusingtheglobalvariablesthatthe
tFlowToIteratecomponentcreatedbeforecallingitforeachrow.

Publishing multiple files using the tFlowToIterate component and Send Email
Notification for Errors.

tRoambiPublishWithFilepublishesoneroambifilebasedonthegivensourcefile,template,
destinationfolderandpermissions.Ifyouwanttopublishmultipleroambifiles,youmayhave
thismappinginformationinatablestoredinadatabaseorinaCSVfile.

ForexampleyoucanhaveaCSVfilecalledmappingTable.csv,with6columns:sourcefile,
template,destinationfolder,roambifilename,usersandgroups.Thisisanexample:

Youwanttopublishalltheroambifilesinthattable.

19
RoambiEnterpriseTalendComponentsMay2016

Inadditiontothat,thisusecasehasthefollowingadvantages:

Thewholeprocesswillrunforallofthefilesinthemappingtable,nomatterifthereare
errorspublishingsomeofthem.
Theprocesswillsendanemailnotificationpereachfilethatcouldnotbepublished.

AssumingyoualreadycreateyourTalendJobstogeneratetheexcelsourcefiles,andyou
alreadygeneratedthemappingTable.csvfile,thissectionexplainsthejobtopublishthosefiles
toRoambi.

1. Createachildjob(inmyexampleIcallitDemo5_PublishHandleError_SubJob)that
callsthetRoambiPublishWithFiletopublishafileandsendemailnotificationincaseof
error.

Thischildjobwillreceiveitsparametersusingcontextparameters.Createthefollowing
contextparametersoftypeString:SourceFile,Template,DestinationFolder,
RoambiFileName,UsersandGroups.

ConfiguretRoambiPublishWithFilecomponentusingthecontextparameters:

20
RoambiEnterpriseTalendComponentsMay2016

MakesureDieonErroroptionisselected.

ConnecttRoambiPublishWithFiletothetSendMailcomponentusingthe
OnComponentErrortriggerlink.

ConfiguretSendMailcomponent.Usethecontextparameterstoconstructtheemail
bodymessage.Example:

"ErrorexecutingtRoambiPublishWithFilecomponentwiththefollowingparameters:\n"+
"SourceFile:"+context.SourceFile+"\n"+
"Template:"+context.Template+"\n"+
"DestinationFolder:"+context.DestinationFolder+"\n"+
"RoambiFileName:"+context.RoambiFileName+"\n"+
"Users:"+context.Users+"\n"+
"Groups:"+context.Groups+"\n"+
"Pleaseseeroambiscriptlogfileformoreinformation.

21
RoambiEnterpriseTalendComponentsMay2016

2. Createtheparentjob.ThisisthejobthatpublishesallthefilesinthemappingTable.csv
file.Thisjobcallsthechildjobcreatedinstep1.

ItusestFileInputDelimitedcomponenttoreadthemappingTable.csvfile.

22
RoambiEnterpriseTalendComponentsMay2016

Youneedtoedititsschemaparametertomatchthecontentofthecsvfile:

ThenconnectittothetFlowToIteratecomponent.IttakeseachrowfromtheCSV,
createsaglobalvariableforeachcolumnandcallsthetRunJobcomponentwhichcalls
thechildjobcreatedinstep1topublishtheroambifile.

ThisistheconfigurationofthetFlowToIteratecomponent.Addaglobalvariableforeach
columnoftheschemareceivedfromthetFileInputDelimitedcomponent.

23
RoambiEnterpriseTalendComponentsMay2016

FinallyconfiguretRunJobcomponent.tRunJobcomponentwillcallthechildjobcreated
instep1topublishthefileandsendnotificationincaseoferror.Itpassthevaluesfrom
theglobalvariablescreatedbythetFlowToIteratecomponenttothechildjobcontext
parameters.

MakesureDieonchilderrorisnotset.Thisistoavoidtheprocesstostopwhenan
errorinthechildjoboccurs.


Publishing multiple files using the tFlowToIterate component, Retry in case of


Error and Send Email Notification for Errors.

tRoambiPublishWithFilepublishesoneroambifilebasedonthegivensourcefile,template,
destinationfolderandpermissions.Ifyouwanttopublishmultipleroambifiles,youmayhave
thismappinginformationinatablestoredinadatabaseorinaCSVfile.

ForexampleyoucanhaveaCSVfilecalledmappingTable.csv,with6columns:sourcefile,
template,destinationfolder,roambifilename,usersandgroups.Thisisanexample:

Youwanttopublishalltheroambifilesinthattable.

Inadditiontothat,thisusecasehasthefollowingadvantages:

24
RoambiEnterpriseTalendComponentsMay2016

Thewholeprocesswillrunforallofthefilesinthemappingtable,nomatterifthereare
errorspublishingsomeofthem.
Theprocesswillretrytopublishthefileincaseoferror.Thenumberofretriesis
configurable.
Theprocesswillsendanemailnotificationpereachfilethatcouldnotbepublishedafter
retrying.

AssumingyoualreadycreateyourTalendJobstogeneratetheexcelsourcefiles,andyou
alreadygeneratedthemappingTable.csvfile,thissectionexplainsthejobtopublishthosefiles
toRoambi.

1. Createachildjob(inmyexampleIcallitDemo6_Publish_SubJob)thatcallsthe
tRoambiPublishWithFiletopublishafileandstoreinaglobalvariablethereturnvalue(0
forsuccessand1forerror).

Thischildjobwillreceiveitsparametersusingcontextparameters.Createthefollowing
contextparametersoftypeString:SourceFile,Template,DestinationFolder,
RoambiFileName,UsersandGroups.Alsonote,weneedanothercontextparameter
calledParentMapoftypeObject.ThisistopasstheglobalMaptowritethereturnvalue
onit.

25
RoambiEnterpriseTalendComponentsMay2016

ConfiguretRoambiPublishWithFilecomponentusingthecontextparameters:

MakesureDieonErroroptionisselected.

ConnecttRoambiPublishWithFiletothetJava_1componentusingtheOnComponentOK
triggerlink.

ConfiguretJava_1componenttowritethereturnvalue0(forsuccess)intheglobalMap.

java.util.Mapmap=(java.util.Map)context.ParentMap
map.put("Demo6_Publish_SubJob_RetVal",0)

26
RoambiEnterpriseTalendComponentsMay2016

ConnecttRoambiPublishWithFiletothetJava_2componentusingthe
OnComponentErrortriggerlink.

ConfiguretJava_2componenttowritethereturnvalue1(forerror)intheglobalMap.

java.util.Mapmap=(java.util.Map)context.ParentMap
map.put("Demo6_Publish_SubJob_RetVal",1)

2. Createanotherchildjob(inmyexampleIcallit
Demo6_PublishRetryHandleError_SubJob)thatcontainstheretrylogicforasinglefile.
Itloopsthenumberofretriesandexitwhensuccess.Incaseitrunoutofretriesitsend
theemailnotificationforthegivenfile.

27
RoambiEnterpriseTalendComponentsMay2016

Thischildjobwillreceiveitsparametersusingcontextparameters.Createthefollowing
contextparametersoftypeString:SourceFile,Template,DestinationFolder,
RoambiFileName,UsersandGroups.Alsonote,weneedanothercontextparameter
calledRetriesoftypeInteger.Thisistopassthenumberofretriesyouwant.


ConfiguretLoopcomponenttoloopasmanytimesgiveninthecontext.Retries
parameter.
Declaration:globalMap.put("Retries",0)
Condition:(Integer)globalMap.get("Retries")<context.Retries

28
RoambiEnterpriseTalendComponentsMay2016

Iteration:globalMap.put("Retries",(Integer)globalMap.get("Retries")+1)

ConnecttLoopcomponenttothetRunJobcomponentusingtheiteratelink.

ConfiguretRunJobcomponent.tRunJobcomponentwillcallthechildjobcreatedinstep
1topublishthefile.Itpassthevaluesfromthecontextparametersandalsopassesthe
globalMap.MakesureDieonchilderroroptionisnotset.

ConnecttRunJobcomponenttotSetGlobalVarcomponentusingtheRunIftriggerlink.

TheRunIftriggerlinkisconfiguredwiththecondition:

(Integer)globalMap.get("Demo6_Publish_SubJob_RetVal")==0

29
RoambiEnterpriseTalendComponentsMay2016


tocalltSetGlobalVarjustwhenthereturnvaluefromthechildjobis0(success).




ConfiguretSetGlobalVarcomponenttosetglobalvariableRetriestothe
context.Retries,creatingtheconditiontoexitfromtheloopwhenthechildjobcompleted
successfully.

ConnecttLoopcomponenttotSendMailcomponentusingtheRunIftriggerlink.

TheRunIftriggerlinkisconfiguredwiththecondition:

(Integer)globalMap.get("Retries")==context.Retries

tocalltSendMailjustwhenitexittheloopwithmaximumnumberofretries,whichmeans
thepublishfailedinallretries.

30
RoambiEnterpriseTalendComponentsMay2016


ConfiguretSendMailcomponent.Usethecontextparameterstoconstructtheemail
bodymessage.Example:

"ErrorexecutingtRoambiPublishWithFilecomponentwiththefollowingparameters:\n"+
"SourceFile:"+context.SourceFile+"\n"+
"Template:"+context.Template+"\n"+
"DestinationFolder:"+context.DestinationFolder+"\n"+
"RoambiFileName:"+context.RoambiFileName+"\n"+
"Users:"+context.Users+"\n"+
"Groups:"+context.Groups+"\n"+
"Pleaseseeroambiscriptlogfileformoreinformation.

31
RoambiEnterpriseTalendComponentsMay2016



3. Createtheparentjob.ThisisthejobthatpublishesallthefilesinthemappingTable.csv
file.Thisjobcallsthechildjobcreatedinstep2.

ItusestFileInputDelimitedcomponenttoreadthemappingTable.csvfile.

Youneedtoedititsschemaparametertomatchthecontentofthecsvfile:

32
RoambiEnterpriseTalendComponentsMay2016

ThenconnectittothetFlowToIteratecomponent.IttakeseachrowfromtheCSV,
createsaglobalvariableforeachcolumnandcallsthetRunJobcomponentwhichcalls
thechildjobcreatedinstep1topublishtheroambifile.

ThisistheconfigurationofthetFlowToIteratecomponent.Addaglobalvariableforeach
columnoftheschemareceivedfromthetFileInputDelimitedcomponent.

FinallyconfiguretRunJobcomponent.tRunJobcomponentwillcallthechildjobcreated
instep2topublishthefile,retryonerror,andsendnotificationincaseoferror.Itpass
thevaluesfromtheglobalvariablescreatedbythetFlowToIteratecomponenttothe

33
RoambiEnterpriseTalendComponentsMay2016

childjobcontextparameters.NotethathereyoupassRetriescontextparametertothe
numberofretriesyouwant.

MakesureDieonchilderrorisnotset.

34
RoambiEnterpriseTalendComponentsMay2016

Appendix A: Troubleshooting and Common Issues

WheredoIfindRoambiScriptandAPIKey?

RoambScript: Finditin
SAPServiceMarketplace .
RoambiAPIKey: Pleasereferto
HowdoIcreateaRoambiAPIclient?

IamgettingemptydatasetinmyRoambifile
Pleasecheckthefollowingitems
1. Youprovisionedtherightusers,andyouareusingaprovisionedusertotesttheRBI
contents.
2. CheckthatyoursourcereportmatchesthedimensionsusedintheRoambiReport.
3. Theprofilevaluesandfiltersfortheuseractuallymatchesthedatainthesourcereport.
Makesureyoudonothaveadditionalqueryfilterthatrestrictthedatathanintended
4. CheckthatyourRBItemplatecanbeaccessed

Istillhaveissueswiththeextension
Pleasecontact support .Pleasebesuretoprovidethefollowinginformation:

Talendproduct
Briefsummaryofwhatyouaretryingtoaccomplish
RoambiScriptLog(ThiscanbefoundinthefolderwhereyouinstalledRoambiScript)
Componentsandparametersused
Screenshotofreport

35
RoambiEnterpriseTalendComponentsMay2016

Appendix B: Version History

Version1.0:May,2015.GeneralReleaseofRoambiEnterpriseTalendComponents
Version2.0:October,2015.Addusecases.
Version2.1:October,2015.Addusersandgroupsparametersinadditiontopermissions
parameterthatwillbedeprecated.
Version2.2:May,2016.UpdatesupportlinkandSAPServiceMarketplacelink.

36

Potrebbero piacerti anche