Open Camera

This post is referring to Vahana 2 (beta version). To check the document for production, please go to vDesigner-v1.0

When this task executes, it opens a camera to capture the media. This task can be implemented in those apps where the user needs to capture the media (image or video) frequently.

Steps to Configure

  1. On the Event Configuration page, find the Task panel.
  2. In the Task panel, search and find the Open Camera task.
  3. Drag the Open Camera task from the Task panel to the Execution panel.
  4. Under Open Camera, a group of boxes appears.
  5. In the boxes, configure different properties as follows:
List/Box DescriptionMandatory
Reference NameIn this box, enter the name of the task. Also, the system generates a reference name by default that you can change. Yes
Camera ModeClick this list and then select any of the following camera mode:

–> Take Picture:- This option allows you to capture the image of the object.

–> Take Video:- This option allows you to record the video of the object.
No
Default ModeClick this list and then select any of the following modes of the camera’s direction:

–> Front Camera:- This option activates the front camera of the device.

–> Back Camera:- This option activates the back camera of the device.
No
Camera ResolutionClick this list to select any of the following resolutions for the captured media (Image or video):
–> Low
–> Medium
–> High
–> HD
–> Ultra HD
No
Doc IDIn this box, enter a unique ID (For example:- aadhr_id). The application uses this unique Doc ID to manage multiple media files of a single document at the database level.

Later, the application uses the same unique Doc ID to fetch the records of the media files from the database.
Yes
Base File PathIn this box, enter the path to a storage location where the application will store the media in the app storage after the “Open Camera” task captures the media.No
File Prefix NameIn this box, enter a prefix name. This prefix is automatically prefixed to the name of the media file when it is saved to the intended location.No
Max File AllowedIn this box, enter the maximum permissible number of media that the end-user can capture of an object. No
Max File SizeIn this box, enter the maximum permissible size of a media file that the end-user can locally save.No
Base 64Click this check box to activate the feature that captures the media with the base-64 format.No
CropClick this check box to activate the crop feature.No
WatermarkClick this check box to activate the watermark feature. This feature displays the watermark on the captured media.No
Output LocationIn this box, you can configure the location to store the captured media at the database level. After the “Open Camera” task captures the media (image or video), the captured media file is automatically saved to the configured JSON-based location in a specific data source.

To configure the location:
–> In the Output Location box, click the application tree icon (), and the right panel displays the Output Location area.
–> In the Output Location area, click the Source list and then select a data source (For example:- Data Store).
–> After you select a data source, the right panel displays the tree of the JSON-based locations in the data source.
–> In the tree, select a location to store the captured media file.
–> After you select the location, click Select, and the output location is successfully configured.

No
Reload ElementsIn this box, configure the elements that the application will reload after the “Open Camera” task captures the media.

To configure the elements:
–> In the Reload Elements box, click the application tree icon (), and the right pane displays the Reload Elements area.
–> In the Reload Elements area, see the application tree.


–> In the application tree, select the elements that the application will reload.
–> After you select one or more elements, click Select, and the elements are successfully configured.
No
Business RuleIn this box, you can configure a business rule to determine the execution of the Open Camera task.  If the user’s action satisfies the condition in the business rule, the Open Camera task is executed.

To configure the business rule:
–> In the Business Rule box, click the application tree icon (), and the Business Rule panel opens.
–> In the Business Rule panel, click Create New to configure a new business rule.
No
  1. After you configure the related properties, click Save to configure the Open Caemra task.
Was this article helpful?
YesNo