-
Recently active
Hello team, i would like to use an expression rule in timer to define the day when a PM will run based on the values in DB. Every month the cut off day for processes is different and its defined in the DB. The expression rule which i call inside the timer is: =rule!ICH_getCutOffDataByFilters( year: year(today()), month: month(today())).day, and it simple calculate the cut off day for current month. But when i publish the PM i am receiving the following error message: ERROR:EVAL:@reason=Expression is invalid (1 token(s) remain after parsing) Any advice please? Thanks
Hi, Im new to using reject function. Now im using the reject function in a process model in a script task In the input : I am calculating a map which looks like this : { id : <>, account : <account_cdt(id, name, hold_code)> } Now in the output tab I want to use reject function to reject all those accounts who have hold codes null ... but then my requirement is that the ID should remain in the output I am using reject function like this : reject( fn!isnull(_), a!forEach( items : ac!map, expression : { id : fv!item.id, holdCodes : index(index(fv!item, "account"), "hold_code") } ) ) Now I know this wont work, but can anyone suggest me how to make it
Hi, I have a requirement to append the values of a particular computation to a local variable using append function The rule goes like this : a!localVariables( local!data : {"x", "y", "z", }, local!finalValues, a!forEach( items: local!data, expression: append( local!finalValues, performSomeComputation(fv!item) ) ) ) now the problem is, the local variable is not getting updated no matter what, I tried using update dictionary as well as insert(local!finalValues, length(local!finalValues) + 1, fv!item) .. but still it wont append .. is there any other method I can use to append values ?
a!localVariables( /* 1 - requestId, 2 - Department, 3 - Sub Department, 4 - Requestor, 5 - Status, 6 - Ship Name, 7 - Task Status */ local!inputList: split(ri!input, "#$"), local!requestId: tointeger(local!inputList[1]), local!deptIdList: tointeger(split(local!inputList[2], "-$-")), local!subDeptIdList: tointeger(split(local!inputList[3], "-$-")), local!requestor: touniformstring(split(local!inputList[4], "-$-")), local!shipId: tointeger(local!inputList[6]), local!statusIdList: touniformstring(split(local!inputList[5], "-$-")), local!taskStatus: toboolean(local!inputList[7]), local!result: a!flatten( a!forEach( items: enumerate(5), expression: a!localVariables( local!batchSize: 2000, local!startIndex: if( tointeger(fv!index) = 1, 1, 1 + ((fv!index - 1) * local!batchSize) ), /*rule!BUS_QE_getBUSReqViewDetails, BUS_QE_getBUSReqVWDtlsTest*/ rule!BUS_QE_getBUSReqVWDtlsTest( fetchtotalcount: t
I have CDT with following fields While using a!toJson , it is EXCLUDING fields which are having NULL values except fields with TEXT datatype. Expresion: - a!localVariables( local!data: 'type!{urn:com:appian:types:RS}RS_dummyCDT'(id: 1, name: "abc"), a!toJson(local!data)) Result: Note: If I use parameter removeNullOrEmptyFields as true, it also excluding text fields which are null a!localVariables( local!data: 'type!{urn:com:appian:types:RS}RS_dummyCDT'(id: 1, name: "abc"), a!toJson( value: local!data, removeNullOrEmptyFields: true )) Result: While using a!toJson_17r1, it is returning all the fields of the CDT irrespective of NULL values. Expression: a!localVariables( local!data: 'type!{urn:com:appian:types:RS}RS_dummyCDT'(id: 1, name: "abc"), a!toJson_17r1(local!data )) Result: I want to get the data the way we are getting result while using a!toJson_17r1. i.e. I want to get all the fie
Hi Everyone, I am returning a cursor from Oracle SP, When using new executeStoredProcedureForQuery, i am getting "Invalid Column Type:2012" error. can see in "Appian Community", Updating ojdbc8.jar solved error, Please advise whether we can follow this solution for our Project.
Hello folks, in my current solution i use an expression rule which queries a View in DB and returns the data based on filter. The Contract Number is an array of Text type, so far as operator i used "in" which worked perfectly even with multiple values. Now there is a new requirement from the business that instead of using exact values they want to have something like contains ("includes" or "start with"). It works if i change the type from array to single value, but not working with array. Is there any way how to make this work even for array? I am getting the following error message while using array: a!queryEntity_22r2( fetchTotalCount: TRUE, entity: cons!ICH_ENTITY_ICH_V_ContractReferenceData, query: a!query( selection: if( rule!GBL_isBlankOrEmpty(ri!fields), null, a!querySelection( columns: a!forEach( items: ri!fields, expression: a!queryColumn(field: fv!item) ) ) ), logi
Hi All, I am working on the Appian IDP application. I have trained it on some single-page documents, and it is perfectly working for single-page documents. Now, I have a document that consists of some text fields and a table. The table is starting from page 1 and going up to page 2, but for this document only the single page is getting extraction for the table. I am not able to select the table details from the next page. Can someone else also face this problem, and do we have any solutions for it? Thanks in advance.
Hi All, I am working on Appian IDP application. I have trained some single paged documents and it is perfectly working for single paged documents. Now, I have a document which consists of some text fields and a table, table is starting from page 1 and going up to 2 page, for this document only single page is getting selection for the table. I am not able to select the table details from the next page. Can someone also face this problem and do we have any solution for this. Thanks in Advance.
Hi All , I have values stored in database in a particular field i.e. say previousValues, like below "{"name":"xyz","regDate":"2012-07-01","regStatus":"Completed"}" -- (Text) Now my requirement is to fetch regStatus value from this format . How can I achieve this
Hi, I am getting below cast invalid error for below rule. Please help in resolving this. The same code is working fine in one of our environments but not in another environment. "Expression evaluation error at function a!queryEntity_22r2: Could not cast from Boolean to Data Store Entity. Details: CastInvalidCould not cast from Boolean to Data Store Entity. Details: CastInvalid" a!queryEntity_22r2( entity: cons!RGRACSLBL_ENTITY_NEW_PROJECTS_EVENTS_VIEW, query: a!query( logicalExpression: a!queryLogicalExpression( operator: "AND", filters: { a!queryFilter( field: "processId_int", operator: "not null" ), a!queryFilter( field: "isExistingCountry_bool", operator: "=", value: ri!isExistingCountry_bool ) } ), pagingInfo: a!pagingInfo( startIndex: 1, batchSize: - 1 ) ), fetchTotalCount:true() ).data
Hi, We have a requirement to generate a document which contains some information of a user that needs to be encoded by the guidelines provided. We need to format the value in such a way that it's length remains fixed always which is provided to us. So any value which has less digits than the required number of digits should be formatted like for eg: If the input is 1250000 and the max limit is 20, then it should be encoded as 00000000000001250000. How can we do that, thanks in advance.
We have integrated the automated rule testing to our CI/CD pipeline. We are using a!startRuleTestsApplications to start the test. We notice on an average the entire test takes under 15 mins to complete, but on occasions the test takes a long time and we ultimately have to kill the build. Want to know how I can debug this. Unable to find anything in the tomcat logs. Is there any debug log I can enable to check where the test execution is stuck?
Hello guys,We're dealing it some issue on attempting this:Right now with find() function or exact() you can't achieve the following:Let's say we have an e-mail with this phrase "I am an idealist", and on the other hand we have a key defined as: "ideal", right now because the body considers all the text, if you try with find(), the output is true because it finds "ideal" on "I am an [ideal]ist", and the exact() will not work as well because "I am an idealist" is not the same as "ideal", even if the key was "idealist" it will output false as well. Any ideas?
Hi, I have below rule which gives output for distinct values only, but I want get output for indistinct values also. For Ex: If I give rule input for groupId_int as {496,496,498} , I should get output for all 3 values though it repeats for 496 two times. But here I'm getting only for 2 items as below screen shot. Can anyone please help me how to approach index( a!queryEntity_22r2( entity: cons!RGRACSLBL_ENTITY_APPIAN_GROUPS, query: a!query( logicalExpression: a!queryLogicalExpression( operator: "AND", filters: { a!queryFilter( field: "Id_int", operator: "in", value: ri!groupId_int, applyWhen: not( rule!APN_isBlank( ri!groupId_int ) ) ), a!queryFilter( field: "groupName_txt", operator: "in", value: ri!groupName_txt, applyWhen: not( rule!APN_isBlan
Hi, I need to modify time stamp given by caladddays to 12:00AM always. How do I do that. Thanks
How to get the Rule Id of the Expression I want to update, since I want this dynamically based on the rule name I am extracting elsewhere and passing as a process parameter? Here when I select the rule by typing and prompt, and save it into a pv created using (+), it is showing the value for that particular rule, I but I want it to be dynamically populated.
For the word "technology", Eg t-1 e-1 c-1 I need character count of unique elements of this string
I have three CDTs that contain some fields with the same value. I want to create an expression rule that matches them and extracts only the fields that don't overlap. What function can I use to make it?
I am attempting to display a CSV file stored in CDT in the UI using the documentViewerField. Here is the code.However, I just get a blank rectangle in the UI. Does the documentViewerField component not work for CSV files? a!documentViewerField( label: index(ri!variable, "documentName", {}), document: index(ri!variable, "document", {}), height: "TALL" ),
Out of curiosity - has anyone implemented Search capabilities in Appian for Homophones?E. g. searching for a user in a database field for names, typing in 'Fill', Appian will search also for 'Phil'. Thanks
Hi all, The title basically describes it. I'd like to be able to apply filters on a list of maps on their key values. For example in the code snippet below, to be able to set filter("name","=",bill) or filter("name", "not null"). Similar to a!queryEntity but for a collection of map instead of a Entity a!localVariables( local!mapCollection: { a!map(name: "bill"), a!map(name: "bob"), a!map(name: "Jim"), a!map(name: null) } ) Also be able to apply operands like and and or if there are multiple key values in the map collection
If there is any expression evaluation error on interface, how can we display that error on UI if want to show to user. Reason for error need to display on UI.
i was creating the question bank application in which i want the particular exam to be end in that specific time so how can i do that ?
I have following code in my expression rule, its giving the data correctly but when i apply sorting it is working fine for all the other fields but for the fields: "Headlines" and "ArticlePostDate" it shows empty data, doesn't return any data. These two are the fields that are not part of the main table and i am referencing it from another table that could be the cause that its not showing any data when I apply sorting in them. Can anyone please help what to do in this scenario. Thanks a!localVariables( local!sortField_txt: rule!EF_PlantDashboard_NewsPagingMapping( sortField_txt: ri!pagingInfo_pi.sort.field ), local!oDataQuery_txt: concat( "/Internal/Editable/ABC?editable=true&includeDeleted=true&$expand=Article($select=ArticlePostDate,Headline)&$filter=Key+eq+", ri!Key, "&$count=true&$top=", cons!EF_PLANTDASHBOARD_NEWS_PAGESIZE, "&$skip=", ri!pagingInfo_pi.startIndex - 1, "&$orderby=", local!sortField_txt, if(
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.