Publishing CAD Documents
Timeouts, Automated Publishing, and Scheduled Publishing
Timeouts
When the Worker Agent sends a request to the worker, it has no way of determining the status of the job. Therefore, the Worker Agent waits for a specified period of time. In the wvs.properties file, the following properties define timeout values for publishing:
publish.cadtimeout.component=600

publish.cadtimeout.assembly=3600

publish.cadtimeout.drawing=600
These properties specify the number of seconds that the Worker Agent waits when the publisher is processing a single component, assembly, or drawing, respectively. Adjust these values to the needs of your site, so that they process the largest data sets. If the values are too small, errors are displayed, and no viewable data is created.
Automated Publishing
There are several ways in which the publishing of viewable CAD data can be automated. A READY_TO_PUBLISH event is emitted when a document is checked in from a Workgroup Manager, or a gateway. If the following property is set to true in the wvs.properties file, this event results in submission of a publish job:
publish.service.readytopublish.enabled=true
This job is processed exactly as if the user (who checked the file in) had made a publish request using the publish icon on the property page. The config spec that is used for the publishing process, is provided by the application that emits the event, for example, a WGM. If that config spec is "null," WVS uses either the latest config spec or an as-stored config spec depending on the value of the property "publish.configspec.default.useasstoredifavailable."
Scheduled Publishing
It is also possible to run WVS scheduler jobs to run container specific queries and create publish jobs for the returned objects. This is achieved using the WVS Job Scheduler Administration tool, where one can select an out-of-the-box Publish Job scheduler method to execute at a certain time, optionally repeated, on the current context. Alternatively, one can opt to write a custom publish job scheduler method, that performs the specific query and publish operation your business requires. Refer to WVS Job Scheduler Administration for more information.
War dies hilfreich?