Posts

Use Case 13: Get User Comments in SignOff

In this Demo, We will see how to get the user provided comments during the Signoff  activity "Use Case: System should check the user provided comments during Signoff" Method Name: Story_GetUserSignOffsComment Event: Pre Event Hooks: Workflow Transition Example: This method is hooked to Express ECO Item type Workflow - Draft to Submit transition Source Code:  https://github.com/gobikrishnanraja/arastutorials LinkedIn: https://www.linkedin.com/in/gobikrishnanraja/

Use Case 12: Allow User to perform Mass Sign Off Using Action

 In this section, we will see how to perform mass signoff functionality using the ARAS action Use Case: "As an Approver, I want have the functionality to perform mass sign off option to complete the approval process using  the action" ARAS Version:  Release 25  Build 14.0.11.36751 Assumptions: All the selected change object should be in Same State. All the selected change object should have same Workflow. Validations: Below validation are performed while using this action Locked Change Object Validation State Validation System Validation Advantages: This action can be hooked to any change objects. This action dynamically fetches the available paths. So, this action can be used on change objects with any state. This action helps the user to perform mass signoff within a fraction of a second. Demo: LinkedIn: https://www.linkedin.com/in/gobikrishnanraja/

Use Case 11: Customizable Save As Functionality in ARAS

In this section, we will see how to Save As functionality can be managed through the configuration to allow the user to decide which relationships to copy, which properties to copy and who can perform the Save As Action Use Case: "As a Developer / Administrator, I want have the option to configure the Save As functionality to define what properties / relationships item to copy and who can perform this action" ARAS Version: Release 25  Build 14.0.11.36751 Explanation: Administrator can create a new Save As Config item for any item type Step 1: Navigate to Administration -> Save As Config Step 2: Create New Step 3: Select the Item Type you want to configure the Save As (Example: Part) Step 4: Click Save As Step 5: System will auto populate the available properties and relationships of selected item type (System properties and read only relationships are auto ignored) Step 6: By default, all the properties and relationships the properties will be auto selected for Save As Ste

Technical Tip 4: Change Label Color & Label Text in Form

  In this section, we will see how to change the color and text of a field in ARAS Forms Use Case: "User wants to change the color and text of a field based on certain properties" You can use below code snippet to achieve this functionality Hook: This method should be attached to any item type form On Load Event var field = document.getElementsByName("name")[0];  var label = field.getElementsByClassName("sys_f_label")[0]; label.style.color = "red"; label.style.innerHTML = "Changing Field Label"; LinkedIn: https://www.linkedin.com/in/gobikrishnanraja/

Technical Tip 3: Disable Image Data Type on After Save

In this section, we will see how to disable the image data type once the item is saved Use Case: "User wants to disable the thumbnail once the CAD document is saved in ARAS" You can use below code snippet to perform this action Hook: This method should be attached to the CAD Document Form if (!document.thisItem.getAttribute("isTemp"))  {      getFieldByName(" thumbnail ").getElementsByClassName("sys_view_file_link")[0].innerText = '';     getFieldByName("thumbnail").getElementsByClassName("thumbnail")[0].setAttribute("style", "pointer-events: none;"); } LinkedIn: https://www.linkedin.com/in/gobikrishnanraja/ In this section, we will see how to update the relationship label to show the count of the relationship data in any tabs. Use Case: "I want have the functionality to have the relationship label updated with total item counts on each tab" ARAS Version:  Release 25  Build 14.0.11.36751 A

Use Case 10: Add ARAS Core Items in ARAS Instance

 In this section, we will see how to add the ARAS core items using the action in ARAS instance Use Case: "As a developer, I want to use an action to add List, Value, Sequence, Identity, Member, Permission, Access, Item Type, Property, TOC Access, Can Add, Allowed Permission, Life Cycle State and Item Type Life Cycle" Explanation: When the input is available, fill the requirement in attached input file and using this action can create the required items in ARAS Source Code: https://github.com/gobikrishnanraja/arastutorials LinkedIn: https://www.linkedin.com/in/gobikrishnanraja/

Use Case 9: Allow User to perform Vote Now on Button Click in item form

 In this Demo, We will see how to the sign off action can be performed on the button click in item form "Use Case: Allow User to perform Vote Now on Button Click in Item Form" Assumptions: Created new item type name POC Voting and attached a life cycle and workflow Explanation: When the workflow activity has multiple path then it will ask for user confirmation to select the path.  If the workflow activity has only one path then it will do the signoff automatically. Source Code:  https://github.com/gobikrishnanraja/arastutorials LinkedIn: https://www.linkedin.com/in/gobikrishnanraja/

Use Case 8: Show Count of Relationship Items

In this Demo, we will see how to show the count of the relationship items in the tab label.  "Use Case: System should provide information about the count of items under each tab." Event: On Form Populated Hooks: Form Example: This method is hooked to Part Item Type Form - On Form Populated Event. Demo: LinkedIn: https://www.linkedin.com/in/gobikrishnanraja/

Use Case 7: Decide Voting Path Based on Parent Property

Image
In this section, we will see how to set different voting path based on the property value from Parent Item. Use Case: "Based on property value from Parent item, Voting Path should be decided" Assumptions 1. Below workflow is created in system and parent item has property Critical Value 2. Get Controlled Item method already exist in ARAS Instance Explanation In this Auto Router activity will check the property "Critical Value" from parent item. If critical value is Yes, then it should go to Compliance Review  and if the value is No, then it should go to CE Evaluation Steps to be followed are: Step 1: Create below server method (C#) in ARAS Instance Innovator innovator = this.getInnovator(); string activityId = this.getID(); Item controlledItem = this.apply("Get Controlled Item"); string criticalValue = controlledItem.getProperty("a_criticalvalue"); string pathName = "Approve1"; if (criticalValue == "Yes") { pathName = "A

Technical Tip 2: Open item in Edit Mode through custom Method

    In this section, we will see how to open an item in edit mode using custom method in ARAS V12 version. Use Case: "Open any item in edit mode using custom method to avoid user from locking / claiming the item" You can use below code snippet to open any item in edit mode aras.uiShowItem("Part",getItem.getID()).then(function() { var itemEdit = aras.uiFindWindowEx(getItem.getID()); itemEdit.onEditCommand(); }); Note: getItem.getID() is Item ID of a previous apply() Example: var innovator = new Innovator(); var getItem = innovator.newItem("Part", "get"); getItem.setAttribute("select", "id"); getItem.setAttribute("maxRecords", "1"); getItem = getItem.apply(); aras.uiShowItem("Part",getItem.getID()).then(function() {      var itemEdit = aras.uiFindWindowEx(getItem.getID()); itemEdit.onEditCommand(); }); LinkedIn: https://www.linkedin.com/in/gobikrishnanraja/

Technical Tip 1: Refresh Main Search Window After Updating any Fields

In this section, we will see how to refresh the main search window after updating any properties / fields in item. Use Case: "After updating any field in item, Main Search Window should refresh and show the updated changes" You can use below code snippet to refresh the main search window  aras.getMostTopWindowWithAras(window).parent.main.work.searchContainer.runSearch();

Use Case 6: Use the System Event Logs for Logging Method Failure

In this section, we will see how to log any method failure error message in ARAS OOTB System Event Logs. Use Case: "As an administrator, want to see the end user method execution failed error in system to debug and identify the root cause of the error" Steps to be followed are: Add New Event Type in List Step 1: Navigate to Administration > Lists > SystemEventType Step 2: Add Event type you want to log (Example : OnAfterAdd) Add New System Event Step 3: Navigate to Administration  > System Events   > System Events Step 4: Create New  > Add New System Events > Select Event Type and Save Add New System Event Log Descriptor Step 5: Navigate to Administration > System Events  > System Event Log Descriptor Step 6: Create New > Add New System Event Log Descriptor > Select Event Type and Save Create Story_FailedMethod_SystemLog Method Step 7: Create new Server Side method  (Method Name: Story_FailedMethod_SystemLog) Innovator inn = this.getInnovator();

Use Case 5: Update Description & Show Error in HTML Table Format

In this Demo, We will see how to update the description of an items using custom action and show the error message in HTML table format in newError() "Use Case: User wants to update multiple items description and get the error message in readable table format" Action Name: Update Description Example: I have created multiple parts and trying to update the description using Super User and Normal User account (Read Only User) Note: This feature is applicable in ARAS V12 Version LinkedIn :  https://www.linkedin.com/in/gobikrishnanraja/ Source Code: https://github.com/gobikrishnanraja/arastutorials

Use Case 4: Instantiate Dynamic Workflow Using Action

  In this Demo, We will see how to instantiate the workflow dynamically using custom action on any item type. "Use Case: User wants to instantiate workflow dynamically based on some condition" Action Name: Instantiate Workflow Pre-requisites: Multiple workflows should be created and added to item type under allowed workflows Example: I have created 3 Workflow and added to Story Change Items item type.  LinkedIn :  https://www.linkedin.com/in/gobikrishnanraja/

Use Case 3: Add Files to any Document Item Revision

  In this Demo, We will see how a files can be browsed through custom form window and load to any revisions of a document item. "Use Case: User wants to add file item to previous revisions of a Document" Action Name: Upload Files to Document(s) Example: Created Document DOC000001 and Revised to E Revision. Let see how we can add the Files to older revisions of this document LinkedIn :  https://www.linkedin.com/in/gobikrishnanraja/

Use Case 2: Add Relationships to any item using Action

  In this Demo, We will see how a relationship can be added to any number of item in ARAS System "Use Case: User wants to add relationship item(s) without opening the parent item on any item types." Solution: Create a custom generic action with can execute access to Allow Add Relationships identity. Who ever belong to Allow Add Relationships identity, System will allow user to select the required child item and add to selected parent items. Example : Part BOM, Part Document, Document Files etc.. Action Name : Add Relationships LinkedIn:  https://www.linkedin.com/in/gobikrishnanraja/

Use Case 1: Elevate User to any Identities Using Custom Action

  In this Demo, We will see how a normal read only user can elevate to any required Identities in ARAS System "Use Case: User wants to elevate to any required identities in ARAS Innovator System" Solution: Create a custom generic action with can execute access to Allow Elevate Access identity. Who ever belong to Allow Elevate Access identity, System will allow user to select the required identities and elevate. Action Name: Elevate to Identity Note: Might need to clear cache and login again to reflect the changes LinkedIn:  https://www.linkedin.com/in/gobikrishnanraja/