Available Methods
- environmentSubstitute ( )
- setFilename ( )
- setDescription ( )
- getLogTables ( )
- addJobEntry ( )
- nrNotes ( )
- getObjectId ( )
- setSharedObjectsFile ( )
- removeJobEntry ( )
- setCreatedUser ( )
- addDatabase ( )
- getDatabases ( )
- getNote ( )
- addJobHop ( )
- setJobLogTable ( )
- setDatabases ( )
- setParameterValue ( )
- initializeVariablesFrom ( )
- setSharedObjects ( )
- setModifiedUser ( )
- getMaximum ( )
- addNote ( )
- nrJobEntries ( )
- indexOfJobEntry ( )
- getObjectRevision ( )
- getName ( )
- getDatabase ( )
- setName ( )
- setInternalKettleVariables ( )
- setModifiedDate ( )
- getJobEntry ( )
- getFilename ( )
- setJobstatus ( )
- setCreatedDate ( )
Related Classes
- java.util.Arrays
- java.util.Collections
- java.io.InputStream
- org.junit.Before
- java.util.UUID
- java.nio.file.Files
- org.junit.Ignore
- org.apache.http.entity.StringEntity
- com.google.common.annotations.VisibleForTesting
- org.eclipse.swt.SWT
- org.eclipse.swt.widgets.Composite
- org.eclipse.swt.widgets.Button
- org.eclipse.swt.widgets.Shell
- org.eclipse.swt.graphics.Image
- org.eclipse.swt.custom.CTabFolder
- org.eclipse.swt.layout.FormAttachment
- org.eclipse.swt.widgets.MessageBox
- org.eclipse.swt.layout.FormData
- org.apache.commons.vfs2.FileObject
- org.pentaho.di.trans.TransMeta
- org.pentaho.di.core.exception.KettleException
- org.pentaho.di.core.database.DatabaseMeta
- org.pentaho.di.core.xml.XMLHandler
- org.pentaho.di.core.Const
- org.pentaho.di.repository.Repository
Java Code Examples for org.pentaho.di.job.JobMeta#setInternalKettleVariables()
The following examples show how to use
org.pentaho.di.job.JobMeta#setInternalKettleVariables() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: KettleFileRepositoryTest.java From pentaho-kettle with Apache License 2.0 | 6 votes |
@Test public void testCurrentDirJob() throws Exception { final String dirName = "dirName"; final String jobName = "job"; JobMeta setupJobMeta = new JobMeta(); setupJobMeta.setName( jobName ); RepositoryDirectoryInterface repoDir = repository.createRepositoryDirectory( new RepositoryDirectory(), dirName ); setupJobMeta.setRepositoryDirectory( repoDir ); repository.save( setupJobMeta, "" ); JobMeta jobMeta = repository.loadJob( jobName, repoDir, null, "" ); assertEquals( repository, jobMeta.getRepository() ); assertEquals( repoDir.getPath(), jobMeta.getRepositoryDirectory().getPath() ); jobMeta.setInternalKettleVariables(); String currentDir = jobMeta.getVariable( Const.INTERNAL_VARIABLE_ENTRY_CURRENT_DIRECTORY ); assertEquals( repoDir.getPath(), currentDir ); }