Questions tagged [flow]
This is a meta tag and should not be used. See the wiki for more information. For static type checker called 'Flow' look into [flowtype] tag.
63
questions
1
vote
1
answer
34
views
Kotlin parallel flow
How set flow to run operation asynchronously like parallel() in java?
IntStream.range(0, size)
.boxed()
.parallel()
.map(this::doSomethingLong)
...
0
votes
0
answers
11
views
How to implement flow for this query
Create below three User Lookup fields Account-
Assigned Attorney
Assigned Paralegal
Managing Attorney
When an event is created, automatically add each of the users in these specific “fields” on an ...
1
vote
1
answer
32
views
flow input type - why we need to type double array like type[][]?
I'm using functional programming library and there is pipe-like function called flow. It's usage looks like this
flow(
map(item => item.toString())
)([1, 2, 3])
Flow is generic so it takes in ...
-1
votes
0
answers
11
views
Dialog flow web demo
is it possible to get file input as user response in dialog flow "WEB DEMO" or "DIALOGFLOW MESSENGER" ?
I've tried a lot to allow attachment in dialog flow but didn't work for me.
0
votes
1
answer
41
views
Vaadin flow: format number when focus leaves
We are using TextField as number input field in our application. Because TextField value is a string, we added various converters to the TextField. For example,
TextField textFieldNetWeight = new ...
0
votes
1
answer
48
views
Thread-safe access to the same variable from different flows (Kotlin)
Is this code thread safe? Do I need a synchronized block or something like that? source1 and source2 endless Kotlin Flow
viewModelScope.launch {
var listAll = mutableListOf<String>()
var ...
0
votes
1
answer
24
views
Using Flow, the list is not reloaded in the recyclerView
I am training with a simple app to show movies, I use an MVVM pattern and Flow.
Problem
This is my home, filterable through chips
I click on a movie , the details screen comes up then I go back to ...
-1
votes
2
answers
43
views
TypeError: 'fn' must be callable (Prefect - Python) [closed]
I'm starting to leart some prefect + python and I'm facing a strange error at the very beginning with a very easy script:
I have already tried it in two diferents PC.
0
votes
1
answer
45
views
Jetpack Compose Room Database Flow, deleting item from database causes recompose
No code, just a theoretical question.
The scenario is this
Room database with one table which houses the fields necessary.
Flow is setup to watch for database changes and report back to the UI.
So. ...
0
votes
0
answers
39
views
Android Using "Flow + asLiveData" or using LiveData End to End
I want to achieve the following:
If I put the app in background for more than 5 seconds and then bring it to the foreground, then the activity should not refresh the recycleAdaptor with data from the ...
-1
votes
1
answer
28
views
Flow type. What is the difference between type {} & {||}
I dont know what is the exact differences.
I want to know what is the differences
0
votes
1
answer
33
views
Android Kotlin - How to use flow.CollectLatest{ } in a loop
I need to use flow.collectLatest {} in my fragment in OnViewCreated, and then in a loop under some condition multiple times (I made a filter, so each time different data should be retrieved).
This is ...
0
votes
0
answers
45
views
chart.js doesn't load in flow+hilla
Made a hilla view based on the standard start.vaadin.com bundle for version 23. I use chart.js version 3.8.2, but also later versions have the same issue.
import { html } from 'lit';
import { ...
1
vote
0
answers
22
views
What's the difference between <fragment_name >$key and <fragment_name >$data in react relay fragment?
I'm learning react relay library, when reading doc Relay - A Guided Tour - Fragments, I am confused by this part:
Relay will automatically generate Flow types for any declared
fragments when the ...
1
vote
0
answers
45
views
What's the difference between usePreloadedQuery and useQueryLoader?
I'm learning graphQL and react-relay library.
In these 2 sections:
Rendering Queries: introduce usePreloadedQuery.
Fetching Queries for Render: introduce useQueryLoader.
For short, I will say 1st-...
-1
votes
1
answer
27
views
Requesting approvals from different approvers for each document in a SharePoint library
We're trying to set up a document library where we can post documents and trigger an approval process, but where we define the approver or approvers for each document. In other words, every document ...
0
votes
0
answers
26
views
Salesforce related Question : How to cover PAUSE Elements from Process Builder Or Flows?
I have to write a test class for a Process Builder which sends a notification to user at certain time which is equal to a date and time field (scheduled Date and Time)in Opportunity so there is a ...
0
votes
0
answers
15
views
Annual traffic flow data and speed limit data?
I need information about data available in Google maps platform API...
Does Google maps platform has any annual traffic flow data (total volume of road traffic), and roads speed data? I am working on ...
0
votes
0
answers
54
views
Error : remove these Aura components or replace them with Lightning web components: forceContent:fileUpload
I am getting the below error when I try to use the File upload component in flow and place it on the community site. It is working fine when I run this in salesforce org but getting errors in a ...
0
votes
0
answers
16
views
Why does my ServiceNow Next Action Date/Time time transform flow not work?
I am trying to create a flow in ServiceNow to update the Next Action Date/Time field to be;
ticket created date/time + 30 minutes
My assumption/logic is based on the information in the URL below...
[...
0
votes
0
answers
74
views
Test a flow generated in a coroutine that never ends
I'm facing a problem while trying to test a class that uses coroutines to connect to a websocket using a ktor client, waits until closeReason is received and then reconnects.
This is the class
class ...
0
votes
0
answers
10
views
Flowtype libdefs -- How to export a class definition from one module and extend it in another?
The project I'm working on uses some 3rd-party libraries in which a main module defines classes that are imported and extended by other, associated modules. In my case the main module is three.js, a ...
0
votes
0
answers
9
views
How do I set Token to OkHttpInterceptor Header with preference storage?
When communicating with the server, I want to put Token in the header part.
I think it's inefficient to put it in @Header every time api server communicate, so I'm going to put the following class in ...
0
votes
0
answers
104
views
NIFI queue is full and the processor is running but not executing its function
I'm building an ETL that first gets the date from the cache to use in the query to pull from a database, transform the content, and send it to the microservice API.
I have a problem, when I start all ...
0
votes
0
answers
34
views
Static resouces not loading after packaging JAR of Vaadin 14 app
I'm using Spring Boot for a Vaadin Flow 14 app and when I package into a JAR using mvn clean package -Pproduction and run it using java -jar app.jar it doesn't show any images or fonts, however the ...
0
votes
0
answers
37
views
Pagination search with kotlin coroutines
My task is to search paginated data from api. Problem is onQueryTextChange i only can get first query e.g. Apple and cannot search more.
Api:
@GET("top-headlines?sources=bbc-news,techcrunch&...
0
votes
0
answers
26
views
I have a question about SharedFlow with the page lifecycle
Although SharedFlow is non-sticky, each result will only be processed once, but during the upload process, if you return to the desktop, in the absence of a receiving end,
SharedFlow will discard ...
0
votes
0
answers
42
views
How to get data from a Flow datatype, to use it in a suspend function in the viewmodel
I'm a little stuck here.
I'm using Flow in an Android App with Room and MVVM paradigm.
On my repository class I have this method that returns a Flow from the DAO.
suspend fun ...
-2
votes
1
answer
73
views
How properly control execution flow in Python?
I have a program that operates on a list of images. This program has several steps (i.e. clean image, find object, or many other steps). Some images, can throw an error in some steps.
What I would ...
0
votes
1
answer
54
views
Why one would pass a function to a react component to obtain the data instead of data itself?
I have a question, that might be subtle (or not).
Why one would pass a function to a react component to obtain the data instead of data itself?
A short example would be
<CompTest data={data} ...>...
-1
votes
1
answer
141
views
choose oauth2 flow spa application
we are building a full-stack application with a SPA client (reactjs) and a nodejs server which publish resource in an API Rest.
I need to authenticate users with an identity provider like azuread or ...
-1
votes
1
answer
37
views
IEEE 802.3bt compliant PD with Low Power Consumption
I am designing a flow transmitter with Power over Ethernet(PoE) output. I am assuming the power consumption of the device is going to be low (< 11 Watts) for which power demand fall under 802.3at ...
-1
votes
2
answers
285
views
angular custom drag and drop flow with image
I want to achieve the below flow using drag and drop image. The same file is used by the flow1 and flow2. in Flow1 process A --> (after complete) Process B --> (after complete) Process C based ...
-1
votes
1
answer
290
views
Custom handling Future failures in Akka Streams Flow
I try to connect multiple Flows in Akka Streams and handle their errors in different ways depending on the Flow. It can be accomplished using sth like that:
Flow[String, Either[ProcessingError, ...
-1
votes
1
answer
60
views
How do I create this database?
I am trying to develop an English app, but I am struggling with the database, which obviously I am not good at it.
If someone could give me some light I would be grateful.
There it is:
The first ...
-1
votes
1
answer
280
views
Understanding excution order in nested functions Python 3.8
Total newbie herem trying to understand the flow of execution,, look at the following code:
from datetime import datetime
from time import *
def time_decorator(function,a=0):
a +=1
print(a)
...
-3
votes
1
answer
112
views
Warning for wrong styles in styled-components
How to we get warning or error messages from styled-components, when we write some wrong styles?
Also do we have any linting tool for style components?
-1
votes
1
answer
423
views
Optimize route on indoor map (warehouse) with R
Our project is focused on optimizing routes within a warehouse in R.
We have multiple locations "from" and "to" all numbered. There are also some constraints, like you have to follow specific pathways ...
-1
votes
1
answer
312
views
React: Javascript assignment not updating object
Code here: https://codesandbox.io/s/github/nieroda/js_err
In function endTurn
console.log(`GameBoard Before`)
console.log(gameBoardCopy)
gameBoardCopy[currentRow][4] = { numColorMatch: ...
-1
votes
2
answers
79
views
Weird flow control code
I'm a c++ developer who is going through some C# that he doesn't understand. The format of the code is basically:
bool method (params)
{
...
try
{
Do Some Stuff with some manual ...
-1
votes
3
answers
90
views
angularjs two request flow
i am having a problem with my angularjs code. I made a code to login, but I need to verify if the current user already exists in database by email. I thought to make two requests to database. (Two $...
-1
votes
1
answer
903
views
how to compute emd flow by using cv.CalcEMD2 (opencv)?
I know MATLAB and C can compute EMD flow. However, I am trying to use python (opencv) to compute the EMD flow by using function cv.CalcEMD2. Is there any chance if anyone can give me an example using ...
-1
votes
2
answers
354
views
command-line flow-based pcap file viewr tools
I need some command-line tool which prints a captured pcap file flow-based as follows:
src-ip src-port dst-ip dst-port protocol(tcp/udp) duration number-of-packet
now, I use captcp it is perfect,but ...
-1
votes
1
answer
60
views
Getting a loop to build a string correctly
I'm trying to pull the tournament age from this webpage:
http://www.reddishvulcans.com/uk_tournament_database.asp
I'm trying to create a string based on the valid ages for entry for each table.
For ...
-1
votes
1
answer
439
views
AWS Instance not able to connect to itself
I have just started playing with AWS, but I have created an instance and when I try to install some software that talks to a specific port, it doesn't go anywhere.
Here is what I am trying to do:
...
-1
votes
2
answers
144
views
Add random number to cell of matrices
I have a cell, A of size 1 by 625. i.e.
A = { A1, A2, ..., A625},
where each of the 625 elements of the cell A are 3D matrices of the same size, 42 by 42 by 3.
Problem 1
Since the entries of my ...
-1
votes
1
answer
25
views
Trying to understand an Apache rewrite
It's been a while since I have used Apache and I just can't wrap my mind around this rewrite even after a documentation refresher. Can anyone explain to me how this rewrite flows / translates to ...
-1
votes
1
answer
528
views
Execution Code Tracking - How to know which code has been executed in project?
Let say that I have open source project from which I would like to borrow some functionality. Can I get some sort of report generated during execution and/or interaction of this project?
Report ...
-1
votes
1
answer
185
views
Design flow for Point Of Sale software for multiple location
I want to design POS application in php,mysql for multiple store location which are internally connected with each other. Sub Admin (each store manager) can manage store with new order placing, taking ...
-1
votes
2
answers
57
views
text after floated element not filling properly
i used a filler image with the same dimensions and it has no transparency or you'd see the menu. but the menu isn't the issue. the text is. check out this fiddle `http://jsfiddle.net/WhiteRau/DC78P/...