Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

A pipeline can define the workflow of a file through a sequence of actions. A particular file is unknown until the pipeline is deployed and executed. However, the pipeline definition must somehow refer to the file being processed generically. To do this, Centro pipelines use dynamic properties.

A dynamic property passes information about the file that the current job has found from trigger to actions. You can extract the file name, file path, file extension, and time and date stamps to build a string.

For an action field, such as the CAD Filepath, the actual file path and file name will differ depending on the file that's queued; however, the pipeline action must describe this generically to accommodate these dynamics.

When an action field contains the dynamic property icon, you can click on the icon to see the list of dynamic properties available for that field. Typing a percent sign (%) will also display the list.


Panel
borderColor#F08F2F
titleAvailable Dynamic Properties


Expand
titleThe file that changed or was added with full path and extension

The absolute file path and file name of the file queued.

Dynamic Property code%DW_Name.dw_changed_file%
Result exampleC:\CADFiles\test.step



Expand
titleThe directory of the file that changed or was added

The absolute file path of the file queued.

Dynamic Property code%DW_Name.dw_changed_dir%
Result exampleC:\CADFiles



Expand
titleThe name of the file that changed or was added without file extension

The file name of the file queued without the extension. 

Dynamic Property code%DW_Name.dw_filename%
Result exampletest



Expand
titleThe extension of the file that changed or was added

The extension of the file name of the file queued. 

Dynamic Property code%DW_Name.dw_file_extension%
Result examplestep



Expand
titleThe name of the file that changed or was added with file extension

The file name and extension of the file name of the file queued. 

Dynamic Property code%DW_Name.dw_filename_extension%
Result exampletest.step



Expand
titleThe relative path of the file from the watched directory

The relative file path of the file name of the file queued. 

Dynamic Property code%DW_Name.relative_path%
Result exampleC:\CADFiles



Expand
titleAuto-incremented file version

An auto-incremented, sequential, numeric value. This can be used to give a unique number to files being processed.

Dynamic Property code%DW_Name.incremented%
Result examples

First job - 1

Second job - 2



Expand
titleThe relative URL of the uploaded Catalog Resource

The identifier of the Catalog part created. 

Dynamic Property code%CAD_to_Catalog_1.catalog_id%
Result example"seascooter"



Expand
titleDatestamp

The server based date in the format of yyyy-mm-dd. This can be used to give a unique number to files being processed.

Dynamic Property code%CentroGlobal.Dateestamp%
Result examples

2016-02-20
(translates to Feb-20-2016)



Expand
titlePipeline-wide counter

A counter value for the pipeline. This can be used to give a unique number to files being processed.

Dynamic Property code%CentroGlobal.NthPerPipeline%
Result examples

1



Expand
titleGlobally unique JobID

A counter value for the pipeline. This can be used to give a unique number to files being processed.

Dynamic Property code%CentroGlobal.GlobalID%
Result examples

{14975117603}-{214}



Expand
titleTimestamp

The server based time in the format of hh-mm-ss-mmm. This can be used to give a unique number to files being processed.

Dynamic Property code%CentroGlobal.Timestamp%
Result examples

09-24-22-427
(translates to 9:24 AM 22 seconds and 427 milliseconds)



Expand
titleJob-wide counter

A counter value for the job. This can be used to give a unique number to files being processed.

Dynamic Property code%CentroGlobal.NthPerJob%
Result examples

214




Examples

Directory watcher name: DirWatcherName

Source file path: C:\CADFiles

Queued file name: test.step

Dynamic StringResulting Output
%DirWatcherName.dw_changed_file%
C:\CADFiles\test.step
%DirWatcherName.dw_changed_dir%\outputFile_%DirWatcherName.dw_file_extension%.ACT3DC:\CADFiles\outputFile.step.ACT3D
%DirWatcherName.relative_path%\%DirWatcherName.dw_filename_extension%.ACT3DC:\CADFiles\test.ACT3D